diff --git a/public/scripts/personas.js b/public/scripts/personas.js index 2030c7be9..82afe7e10 100644 --- a/public/scripts/personas.js +++ b/public/scripts/personas.js @@ -1559,7 +1559,7 @@ async function loadPersonaForCurrentChat({ doRender = false } = {}) { export function getConnectedPersonas(characterKey = undefined) { characterKey ??= selected_group || characters[Number(this_chid)]?.avatar; const connectedPersonas = Object.entries(power_user.persona_descriptions) - .filter(([_, desc]) => desc.connections?.some(conn => conn.type === 'character' && conn.id === characterKey)) + .filter(([_, { connections }]) => connections?.some(conn => conn.id === characterKey)) .map(([key, _]) => key); return connectedPersonas; }