mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 08:57:11 +01:00
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
Block a user