mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Update module/applications/sidebar/tabs/actorDirectory.mjs
Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
This commit is contained in:
parent
22f38d796b
commit
fc60305a44
1 changed files with 1 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue