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
This commit is contained in:
Cohee
2024-09-09 20:27:00 +03:00
committed by GitHub

View File

@@ -3412,7 +3412,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
.filter((index) => index !== undefined && index !== null); .filter((index) => index !== undefined && index !== null);
if (memberIds.length > 0) { if (memberIds.length > 0) {
setCharacterId(memberIds[0]); if (menu_type != 'character_edit') setCharacterId(memberIds[0]);
setCharacterName(''); setCharacterName('');
} else { } else {
console.log('No enabled members found'); console.log('No enabled members found');