mirror of
https://github.com/cudr/slate-collaborative.git
synced 2024-10-27 20:34:06 +00:00
fix: undefined value error in setNode
This commit is contained in:
parent
d0e54e543c
commit
176a0f650d
@ -9,8 +9,10 @@ const setNode = (doc: SyncValue, op: SetNodeOperation): SyncValue => {
|
||||
const { newProperties } = op
|
||||
|
||||
for (let key in newProperties) {
|
||||
if (newProperties[key] !== undefined) {
|
||||
node[key] = newProperties[key]
|
||||
}
|
||||
}
|
||||
|
||||
return doc
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user