Add missing await

This commit is contained in:
Cohee 2024-07-12 01:09:46 +03:00
parent 3983eef827
commit f53fa0d19d
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ class PresetManager {
async savePresetAs() { async savePresetAs() {
const inputValue = this.getSelectedPresetName(); const inputValue = this.getSelectedPresetName();
const popupText = !this.isNonGenericApi() ? '<h4>Hint: Use a character/group name to bind preset to a specific chat.</h4>' : ''; const popupText = !this.isNonGenericApi() ? '<h4>Hint: Use a character/group name to bind preset to a specific chat.</h4>' : '';
const name = Popup.show.input('Preset name:', popupText, inputValue); const name = await Popup.show.input('Preset name:', popupText, inputValue);
if (!name) { if (!name) {
console.log('Preset name not provided'); console.log('Preset name not provided');
return; return;