mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 08:57:11 +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