Fix removal of damage field

This commit is contained in:
Carlos Fernandez 2026-03-23 19:58:19 -04:00
parent 4a116a62ee
commit 26d1461e46

View file

@ -89,6 +89,7 @@ export class ActionField extends foundry.data.fields.ObjectField {
/** @override */
_cleanType(value, options, _state) {
if (!(typeof value === 'object')) value = {};
value = super._cleanType(value, options, _state);
const cls = this.getModel(value);
if (cls) return cls.cleanData(value, options, _state);
return value;