From 22f1b110e9538a2ad7b0f471d533ab5e98d0fbd8 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 19 Sep 2024 23:49:23 +0300 Subject: [PATCH] One extra check wouldn't hurt --- public/scripts/preset-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/preset-manager.js b/public/scripts/preset-manager.js index 96b213600..e1911dfb7 100644 --- a/public/scripts/preset-manager.js +++ b/public/scripts/preset-manager.js @@ -183,7 +183,7 @@ class PresetManager { } async savePreset(name, settings) { - if (this.apiId === 'instruct') { + if (this.apiId === 'instruct' && settings) { await checkForSystemPromptInInstructTemplate(name, settings); }