mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 17:07:07 +01:00
Don't pre-render PM error if empty
This commit is contained in:
parent
097894308e
commit
b904f501ba
@ -1348,11 +1348,11 @@ class PromptManager {
|
||||
const promptManagerDiv = this.containerElement;
|
||||
promptManagerDiv.innerHTML = '';
|
||||
|
||||
const errorDiv = `
|
||||
const errorDiv = this.error ? `
|
||||
<div class="${this.configuration.prefix}prompt_manager_error">
|
||||
<span class="fa-solid tooltip fa-triangle-exclamation text_danger"></span> ${DOMPurify.sanitize(this.error)}
|
||||
</div>
|
||||
`;
|
||||
` : '';
|
||||
|
||||
const totalActiveTokens = this.tokenUsage;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user