8000 fix: handle null in deepSync (#729) · nuxt/devtools@8c0efdb · GitHub
[go: up one dir, main page]

Skip to content

Commit 8c0efdb

Browse files
authored
fix: handle null in deepSync (#729)
1 parent 43aa9dc commit 8c0efdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/devtools/client/components/StateEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function deepSync(from: any, to: any) {
5555
for (const key in fromValue) {
5656
if (Array.isArray(fromValue[key]))
5757
to[key] = fromValue[key].slice()
58-
else if (typeof fromValue[key] === 'object')
58+
else if (typeof fromValue[key] === 'object' && fromValue[key] !== null)
5959
deepSync(fromValue[key], to[key])
6060
else
6161
to[key] = fromValue[key]

0 commit comments

Comments
 (0)
0