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

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