mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Prevent context profiler from dangling on error
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user