This commit is contained in:
Ulion 2021-04-21 03:10:16 +00:00 committed by GitHub
commit 9696b60b9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]