Fixed so that we are not looking at the now non-existing metadata.isQuantifiable anymore (#1922)

This commit is contained in:
WBHarry 2026-05-24 17:15:17 +02:00 committed by GitHub
parent e4a3f105dc
commit f7f1bdce2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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?.isInventoryItem && this.parent.consumeOnUse === false) {
filteredCosts = filteredCosts.filter(c => c.key !== 'quantity');
}