mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 06:26:13 +01:00
Fixed not being able to open the tokenConfig of actor-less tokens
This commit is contained in:
parent
a65514b1c1
commit
17ec77a349
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ export default class DHToken extends CONFIG.Token.documentClass {
|
||||||
const valueGroup = game.i18n.localize('TOKEN.BarValues');
|
const valueGroup = game.i18n.localize('TOKEN.BarValues');
|
||||||
const actorModel = typeKey ? game.system.api.data.actors[`Dh${typeKey.capitalize()}`] : null;
|
const actorModel = typeKey ? game.system.api.data.actors[`Dh${typeKey.capitalize()}`] : null;
|
||||||
const getLabel = path => {
|
const getLabel = path => {
|
||||||
const label = actorModel.schema.getField(path)?.label;
|
const label = actorModel?.schema.getField(path)?.label;
|
||||||
return label ? game.i18n.localize(label) : path;
|
return label ? game.i18n.localize(label) : path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue