mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add missing await
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user