One extra check wouldn't hurt

This commit is contained in:
Cohee 2024-09-19 23:49:23 +03:00
parent 88c47fccdf
commit 22f1b110e9

View File

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