From 5c3ad3e0bc66609807137db0b6e8694b0aa89005 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 24 May 2024 22:23:55 +0300 Subject: [PATCH] Let's make the diff even cleaner! --- public/scripts/PromptManager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/scripts/PromptManager.js b/public/scripts/PromptManager.js index 102ea9e70..1faec140e 100644 --- a/public/scripts/PromptManager.js +++ b/public/scripts/PromptManager.js @@ -1432,7 +1432,7 @@ class PromptManager { const { prefix } = this.configuration; - let listItem = await renderTemplateAsync('promptManagerListHeader', { prefix }); + let listItemHtml = await renderTemplateAsync('promptManagerListHeader', { prefix }); this.getPromptsForCharacter(this.activeCharacter).forEach(prompt => { if (!prompt) return; @@ -1498,7 +1498,7 @@ class PromptManager { const isInjectionPrompt = !prompt.marker && prompt.injection_position === INJECTION_POSITION.ABSOLUTE; const isOverriddenPrompt = Array.isArray(this.overriddenPrompts) && this.overriddenPrompts.includes(prompt.identifier); const importantClass = isImportantPrompt ? `${prefix}prompt_manager_important` : ''; - listItem += ` + listItemHtml += `