Add missing await
This commit is contained in:
parent
3983eef827
commit
f53fa0d19d
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue