Update to newest types and remove now obsolete object spreading

This commit is contained in:
Johannes Loher 2021-07-08 23:31:17 +02:00
parent dff760a7f1
commit aad9d30a7b
4 changed files with 8 additions and 8 deletions

View file

@ -175,7 +175,7 @@ export class DS4ActorSheet extends ActorSheet<ActorSheet.Options, DS4ActorSheetD
// Set new value
const newValue = this.getValue(el);
foundry.utils.setProperty(itemObject, property, newValue);
item.update({ ...itemObject });
item.update(itemObject);
}
/**

View file

@ -103,7 +103,7 @@ export class DS4ItemSheet extends ItemSheet<ItemSheet.Options, DS4ItemSheetData>
icon: "icons/svg/aura.svg",
};
return ActiveEffect.create({ ...createData }, { parent: this.item });
return ActiveEffect.create(createData, { parent: this.item });
}
}