mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 10:57:45 +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;
|
const promptManagerDiv = this.containerElement;
|
||||||
promptManagerDiv.innerHTML = '';
|
promptManagerDiv.innerHTML = '';
|
||||||
|
|
||||||
const errorDiv = `
|
const errorDiv = this.error ? `
|
||||||
<div class="${this.configuration.prefix}prompt_manager_error">
|
<div class="${this.configuration.prefix}prompt_manager_error">
|
||||||
<span class="fa-solid tooltip fa-triangle-exclamation text_danger"></span> ${DOMPurify.sanitize(this.error)}
|
<span class="fa-solid tooltip fa-triangle-exclamation text_danger"></span> ${DOMPurify.sanitize(this.error)}
|
||||||
</div>
|
</div>
|
||||||
`;
|
` : '';
|
||||||
|
|
||||||
const totalActiveTokens = this.tokenUsage;
|
const totalActiveTokens = this.tokenUsage;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user