One extra check wouldn't hurt

This commit is contained in:
Cohee 2024-09-19 23:49:23 +03:00
parent 88c47fccdf
commit 22f1b110e9
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class PresetManager {
}
async savePreset(name, settings) {
if (this.apiId === 'instruct') {
if (this.apiId === 'instruct' && settings) {
await checkForSystemPromptInInstructTemplate(name, settings);
}