From 448af33b4d195ee531fe983dd56cdc3db2775184 Mon Sep 17 00:00:00 2001 From: I Date: Mon, 9 Sep 2024 00:17:19 -0400 Subject: [PATCH] Update script.js - fixes group chat this_chid being set twice in character edit panel --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index dc50a6e69..5800d24d1 100644 --- a/public/script.js +++ b/public/script.js @@ -3412,7 +3412,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro .filter((index) => index !== undefined && index !== null); if (memberIds.length > 0) { - setCharacterId(memberIds[0]); + if (menu_type != 'character_edit') setCharacterId(memberIds[0]); setCharacterName(''); } else { console.log('No enabled members found');