mirror of
https://github.com/bknd-io/bknd.git
synced 2026-10-26 04:08:30 +00:00
use nullish coalescing and fix mode plugin pick up
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user