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