From fc60305a44aebf7379cd2255917cdd6e8161d31a Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Wed, 15 Apr 2026 17:38:32 +0200 Subject: [PATCH] Update module/applications/sidebar/tabs/actorDirectory.mjs Co-authored-by: Carlos Fernandez --- module/applications/sidebar/tabs/actorDirectory.mjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/module/applications/sidebar/tabs/actorDirectory.mjs b/module/applications/sidebar/tabs/actorDirectory.mjs index a3c37acc..16e490c4 100644 --- a/module/applications/sidebar/tabs/actorDirectory.mjs +++ b/module/applications/sidebar/tabs/actorDirectory.mjs @@ -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(); }