diff --git a/packages/bridge/src/apply/node/setNode.ts b/packages/bridge/src/apply/node/setNode.ts index 65c43e1..48d6226 100644 --- a/packages/bridge/src/apply/node/setNode.ts +++ b/packages/bridge/src/apply/node/setNode.ts @@ -10,7 +10,7 @@ const setNode = (doc: SyncValue, op: SetNodeOperation): SyncValue => { for (let key in newProperties) { const value = newProperties[key] - if (value !== undefined) { + if (value != null) { node[key] = value } else { delete node[key]