mirror of
https://github.com/bknd-io/bknd.git
synced 2026-10-25 11:48:31 +00:00
fix: added action to field.isFillable
This commit is contained in:
1 parent
eb1496ad0a
commit
772e9b4748
1 file changed
+1
-1
@@ -25,7 +25,7 @@ export function getChangeSet(
|
||||
const field = fields.find((f) => f.name === key);
|
||||
// @todo: filtering virtual here, need to check (because of media)
|
||||
// @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;
|
||||
|
||||
// normalize to null if undefined
|
||||
|
||||
Reference in new issue
Block a user