Merge pull request #2812 from imesha10/staging Fix to BR #2811 - Renaming character in Group Chat does not select the right character and renames the wrong character

58238fe42bb90fe28a586d97e43fe76a766ab34d

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -3412,7 +3412,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
3412 .filter((index) => index !== undefined && index !== null);3412 .filter((index) => index !== undefined && index !== null);
34133413
3414 if (memberIds.length > 0) {3414 if (memberIds.length > 0) {
3415 setCharacterId(memberIds[0]);3415 if (menu_type != 'character_edit') setCharacterId(memberIds[0]);
3416 setCharacterName('');3416 setCharacterName('');
3417 } else {3417 } else {
3418 console.log('No enabled members found');3418 console.log('No enabled members found');