domain lookup fix for tooltipo (#1420)

This commit is contained in:
Josh Q. 2025-12-12 23:42:44 -05:00 committed by GitHub
parent f4dd9dc5c1
commit 360b903437
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -75,7 +75,8 @@ export default class DhTooltipManager extends foundry.helpers.interaction.Toolti
{
item: item,
description: item.system?.enrichedDescription ?? item.enrichedDescription,
config: CONFIG.DH
config: CONFIG.DH,
allDomains: CONFIG.DH.DOMAIN.allDomains()
}
);

View file

@ -6,7 +6,7 @@
<div class="tooltip-information-section">
<div class="tooltip-information">
<label>{{localize "DAGGERHEART.GENERAL.Domain.single"}}</label>
{{#with (lookup config.DOMAIN.domains item.system.domain) as | domain |}}
{{#with (lookup allDomains item.system.domain) as | domain |}}
<div>{{localize domain.label}}</div>
{{/with}}
</div>