Fix prompt settings init

This commit is contained in:
Cohee 2023-06-07 18:02:51 +03:00 committed by maver
parent dce91f8fad
commit 4027afb737
1 changed files with 1 additions and 1 deletions

View File

@ -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
};