From 5b65448a70ae3b1e1cec7c71a776fa142f417032 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 22 Sep 2024 20:00:09 +0300 Subject: [PATCH] Fix local variable name --- public/scripts/sysprompt.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/scripts/sysprompt.js b/public/scripts/sysprompt.js index 1e4106333..038fc4bd6 100644 --- a/public/scripts/sysprompt.js +++ b/public/scripts/sysprompt.js @@ -126,11 +126,11 @@ function selectSystemPromptCallback(args, name) { } const quiet = isTrueBoolean(args?.quiet); - const instructNames = system_prompts.map(preset => preset.name); - let foundName = instructNames.find(x => x.toLowerCase() === name.toLowerCase()); + const systemPromptNames = system_prompts.map(preset => preset.name); + let foundName = systemPromptNames.find(x => x.toLowerCase() === name.toLowerCase()); if (!foundName) { - const fuse = new Fuse(instructNames); + const fuse = new Fuse(systemPromptNames); const result = fuse.search(name); if (result.length === 0) {