mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
Fixed an error where a player having their token initially selected caused an error in effectsDisplay.mjs
This commit is contained in:
parent
38fb00bd10
commit
8c87ced9e3
1 changed files with 2 additions and 0 deletions
|
|
@ -76,6 +76,8 @@ export default class DhEffectsDisplay extends HandlebarsApplicationMixin(Applica
|
|||
};
|
||||
|
||||
toggleHidden(token, focused) {
|
||||
if (!this.element) return;
|
||||
|
||||
const effects = DhEffectsDisplay.getTokenEffects(focused ? token : null);
|
||||
this.element.hidden = effects.length === 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue