Rework fiches, jets de dés et CSS
This commit is contained in:
@@ -113,7 +113,7 @@ export default class MournbladeCYD2ActorSheetV2 extends HandlebarsApplicationMix
|
||||
const dataType = target.dataset.dtype;
|
||||
const value = dataType === "Number" ? Number(target.value) : target.value;
|
||||
const item = this.document.items.get(itemId);
|
||||
if (item) await item.update({ [itemField]: value });
|
||||
if (item) await item.update({ [`system.${itemField}`]: value });
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user