Update module/applications/sidebar/tabs/actorDirectory.mjs

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
This commit is contained in:
WBHarry 2026-04-15 17:38:32 +02:00 committed by GitHub
parent 22f38d796b
commit fc60305a44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,9 +103,7 @@ export default class DhActorDirectory extends foundry.applications.sidebar.tabs.
if (!actor) throw new Error('Unexpected missing actor');
const currentActiveParty = game.actors.find(x => x.type === 'party' && x.system.active);
if (currentActiveParty)
await currentActiveParty.update({ 'system.active': false });
await currentActiveParty?.update({ 'system.active': false });
await actor.update({ 'system.active': true });
ui.actors.render();
}