mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 01:17:39 +01:00
Fix prompt settings init
This commit is contained in:
parent
dce91f8fad
commit
4027afb737
@ -362,7 +362,7 @@ PromptManagerModule.prototype.addPrompt = function (prompt, identifier) {
|
||||
* @returns {void}
|
||||
*/
|
||||
PromptManagerModule.prototype.sanitizeServiceSettings = function () {
|
||||
this.serviceSettings.prompts.forEach((prompt => prompt.identifier = prompt.identifier || this.getUuidv4()));
|
||||
this.serviceSettings.prompts.forEach((prompt => prompt && (prompt.identifier = prompt.identifier || this.getUuidv4())));
|
||||
// TODO:
|
||||
// Sanitize data
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user