mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
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:
@@ -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');
|
||||||
|
Reference in New Issue
Block a user