You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix all AppV2 ship sheets throwing DataModelValidationError ("must be a number") when a number field is cleared
Applies to NPC ship, player ship, ship component items, and ordnance sheets
Extract shared coerceEmptyNumberInputs helper into scripts/sheet-utils.js
AppV2: override _processFormData in each sheet mixin to coerce null values from empty <input type="number"> to 0 before Foundry validates the expanded object; use querySelector+CSS.escape for reliable element lookup with dotted names
AppV1: _updateObject coerces empty inputs to 0 before the key-remap loop