Update script.js - fixes group chat this_chid being set twice in character edit panel
This commit is contained in:
parent
58d17d4bd9
commit
448af33b4d
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue