fix: added action to field.isFillable

This commit is contained in:
shishantbiswas committed 2026-10-11 08:43:50 +05:30
1 parent eb1496ad0a
commit 772e9b4748
1 file changed
+1 -1
+1 -1
View File
@@ -25,7 +25,7 @@ export function getChangeSet(
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)
// @note: adding non-fillable here as it'll fail validaiton on backend // @note: adding non-fillable here as it'll fail validaiton on backend
if (!field || field.isVirtual() || !field.isFillable()) return; if (!field || field.isVirtual() || !field.isFillable(action as "create" | "update")) return;
const value = _value === "" ? null : _value; const value = _value === "" ? null : _value;
// normalize to null if undefined // normalize to null if undefined