Merge pull request #287 from bknd-io/feat/data-ui-fillable-visible

make non-fillable fields visible but disabled in UI
This commit is contained in:
Shishant Biswas authored and GitHub committed 2026-09-24 17:22:42 +05:30
commit 4709fec45c
12 files changed
+355 -38

No files matched your search

+2 -1
View File
@@ -24,7 +24,8 @@ export function getChangeSet(
(acc, _value, key) => {
const field = fields.find((f) => f.name === key);
// @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;
// normalize to null if undefined