mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 08:57:11 +01:00
Fix render function when no character is selected
This commit is contained in:
parent
07c24f363f
commit
a99c543b9f
@ -608,6 +608,11 @@ PromptManagerModule.prototype.render = function (afterTryGenerate = true) {
|
|||||||
this.renderPromptManagerListItems()
|
this.renderPromptManagerListItems()
|
||||||
this.makeDraggable();
|
this.makeDraggable();
|
||||||
this.profileEnd('render');
|
this.profileEnd('render');
|
||||||
|
}).catch(error => {
|
||||||
|
this.log('Error caught during render: ' + error);
|
||||||
|
this.renderPromptManager();
|
||||||
|
this.renderPromptManagerListItems()
|
||||||
|
this.makeDraggable();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// Executed during live communication
|
// Executed during live communication
|
||||||
|
Loading…
Reference in New Issue
Block a user