use nullish coalescing and fix mode plugin pick up

This commit is contained in:
dswbx
2025-11-26 10:04:24 +01:00
parent 43dbc856ce
commit 8f4de33a76
3 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ export function getChangeSet(
const value = _value === "" ? null : _value;
// normalize to null if undefined
const newValue = field.getValue(value, "submit") || null;
const newValue = field.getValue(value, "submit") ?? null;
// @todo: add typing for "action"
if (action === "create" || newValue !== data[key]) {
acc[key] = newValue;