mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
One extra check wouldn't hurt
This commit is contained in:
@ -183,7 +183,7 @@ class PresetManager {
|
||||
}
|
||||
|
||||
async savePreset(name, settings) {
|
||||
if (this.apiId === 'instruct') {
|
||||
if (this.apiId === 'instruct' && settings) {
|
||||
await checkForSystemPromptInInstructTemplate(name, settings);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user