mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-20 08:37:02 +01:00
fix weird ternary
This commit is contained in:
parent
aea2ef99c0
commit
998e91004e
1 changed files with 4 additions and 3 deletions
|
|
@ -91,10 +91,11 @@ export default class D20RollDialog extends HandlebarsApplicationMixin(Applicatio
|
||||||
context.roll = this.roll;
|
context.roll = this.roll;
|
||||||
context.rollType = this.roll?.constructor.name;
|
context.rollType = this.roll?.constructor.name;
|
||||||
context.rallyDie = this.roll.rallyChoices;
|
context.rallyDie = this.roll.rallyChoices;
|
||||||
context.experiences = this.config.data?.experiences ? Object.keys(this.config.data.experiences).map(id => ({
|
const experiences = this.config.data?.experiences || {};
|
||||||
|
context.experiences = Object.keys(experiences).map(id => ({
|
||||||
id,
|
id,
|
||||||
...this.config.data.experiences[id]
|
...experiences[id]
|
||||||
})) : [];
|
}));
|
||||||
context.selectedExperiences = this.config.experiences;
|
context.selectedExperiences = this.config.experiences;
|
||||||
context.advantage = this.config.roll?.advantage;
|
context.advantage = this.config.roll?.advantage;
|
||||||
context.disadvantage = this.config.roll?.disadvantage;
|
context.disadvantage = this.config.roll?.disadvantage;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue