diff --git a/packages/devtools/client/components/StateEditor.vue b/packages/devtools/client/components/StateEditor.vue index fe86ca3a8..afbd75e06 100644 --- a/packages/devtools/client/components/StateEditor.vue +++ b/packages/devtools/client/components/StateEditor.vue @@ -55,7 +55,7 @@ function deepSync(from: any, to: any) { for (const key in fromValue) { if (Array.isArray(fromValue[key])) to[key] = fromValue[key].slice() - else if (typeof fromValue[key] === 'object') + else if (typeof fromValue[key] === 'object' && fromValue[key] !== null) deepSync(fromValue[key], to[key]) else to[key] = fromValue[key]