fixed type of HTML property name in _onItemChange

This commit is contained in:
Gesina Schwalbe 2021-01-03 22:40:01 +01:00
parent 944907deb7
commit ec404624c7

View file

@ -110,7 +110,7 @@ export class DS4ActorSheet extends ActorSheet<DS4ActorDataType, DS4Actor, DS4Ite
const el: HTMLFormElement = $(ev.currentTarget).get(0);
const id = $(ev.currentTarget).parents(".item").data("itemId");
const item = duplicate(this.actor.getOwnedItem(id)); // getOwnedItem is typed incorrectly, it actually returns a ItemData<DS4ItemDataType>, not an Item
const property: string = $(ev.currentTarget).data("property");
const property: string | undefined = $(ev.currentTarget).data("property");
// Early return:
// Disabled => do nothing