mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Null check metadata (#1145)
* Null check metadata * Fix d20RollDialog action find --------- Co-authored-by: Chris Ryan <chrisr@blackhole> Co-authored-by: Dapoolp <elcatnet@gmail.com>
This commit is contained in:
parent
55586c93c8
commit
f1b5c80a53
2 changed files with 2 additions and 2 deletions
|
|
@ -103,7 +103,7 @@ export default class CostField extends fields.ArrayField {
|
|||
static calcCosts(costs) {
|
||||
const resources = CostField.getResources.call(this, costs);
|
||||
let filteredCosts = costs;
|
||||
if (this.parent.metadata.isQuantifiable && this.parent.consumeOnUse === false) {
|
||||
if (this.parent?.metadata.isQuantifiable && this.parent.consumeOnUse === false) {
|
||||
filteredCosts = filteredCosts.filter(c => c.key !== 'quantity');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue