Separate data and _data for DS4Item

This commit is contained in:
Johannes Loher 2021-03-22 09:04:45 +01:00
parent a7569633e2
commit 7c7d30854c
12 changed files with 150 additions and 54 deletions

View file

@ -160,7 +160,7 @@ export class DS4ActorSheet extends ActorSheet<ActorSheet.Data<DS4Actor>> {
ev.preventDefault();
const el: HTMLFormElement = $(ev.currentTarget).get(0);
const id = $(ev.currentTarget).parents(".item").data("itemId");
const item = duplicate<DS4Item, "lenient">(this.actor.getOwnedItem(id));
const item = duplicate(this.actor.getOwnedItem(id));
const property: string | undefined = $(ev.currentTarget).data("property");
// Early return: