Fix render function when no character is selected

This commit is contained in:
maver 2023-08-20 16:37:39 +02:00
parent 07c24f363f
commit a99c543b9f
1 changed files with 5 additions and 0 deletions

View File

@ -608,6 +608,11 @@ PromptManagerModule.prototype.render = function (afterTryGenerate = true) {
this.renderPromptManagerListItems()
this.makeDraggable();
this.profileEnd('render');
}).catch(error => {
this.log('Error caught during render: ' + error);
this.renderPromptManager();
this.renderPromptManagerListItems()
this.makeDraggable();
});
} else {
// Executed during live communication