mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 17:36:22 +01:00
One extra check wouldn't hurt
This commit is contained in:
parent
88c47fccdf
commit
22f1b110e9
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user