Prevent context profiler from dangling on error
This commit is contained in:
parent
0e378d93b2
commit
48992d4f53
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue