There was an error while loading. Please reload this page.
1 parent 43aa9dc commit 8c0efdbCopy full SHA for 8c0efdb
packages/devtools/client/components/StateEditor.vue
@@ -55,7 +55,7 @@ function deepSync(from: any, to: any) {
55
for (const key in fromValue) {
56
if (Array.isArray(fromValue[key]))
57
to[key] = fromValue[key].slice()
58
- else if (typeof fromValue[key] === 'object')
+ else if (typeof fromValue[key] === 'object' && fromValue[key] !== null)
59
deepSync(fromValue[key], to[key])
60
else
61
to[key] = fromValue[key]
0 commit comments