fix(ui-form): skip non-fillable fields in form data because they fail validation in backend

This commit is contained in:
2026-09-24 14:22:23 +05:30
parent e81636ea95
commit da80e91074
+2 -1
View File
@@ -24,7 +24,8 @@ export function getChangeSet(
(acc, _value, key) => { (acc, _value, key) => {
const field = fields.find((f) => f.name === key); const field = fields.find((f) => f.name === key);
// @todo: filtering virtual here, need to check (because of media) // @todo: filtering virtual here, need to check (because of media)
if (!field || field.isVirtual()) return; // @note: adding non-fillable here as it'll fail validaiton on backend
if (!field || field.isVirtual() || !field.isFillable()) return;
const value = _value === "" ? null : _value; const value = _value === "" ? null : _value;
// normalize to null if undefined // normalize to null if undefined