Update to newest types and remove now obsolete object spreading
This commit is contained in:
parent
dff760a7f1
commit
aad9d30a7b
4 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue