diff --git a/public/scripts/preset-manager.js b/public/scripts/preset-manager.js index 19c3f0bbd..756c518ef 100644 --- a/public/scripts/preset-manager.js +++ b/public/scripts/preset-manager.js @@ -166,7 +166,7 @@ class PresetManager { async savePresetAs() { const inputValue = this.getSelectedPresetName(); const popupText = !this.isNonGenericApi() ? '

Hint: Use a character/group name to bind preset to a specific chat.

' : ''; - const name = Popup.show.input('Preset name:', popupText, inputValue); + const name = await Popup.show.input('Preset name:', popupText, inputValue); if (!name) { console.log('Preset name not provided'); return;