Prevent context profiler from dangling on error

This commit is contained in:
maver 2023-08-22 20:39:46 +02:00
parent 0e378d93b2
commit 48992d4f53
1 changed files with 1 additions and 0 deletions

View File

@ -664,6 +664,7 @@ PromptManagerModule.prototype.render = function (afterTryGenerate = true) {
this.makeDraggable();
this.profileEnd('render');
}).catch(error => {
this.profileEnd('filling context');
this.log('Error caught during render: ' + error);
this.renderPromptManager();
this.renderPromptManagerListItems()