From c93eeeb308b2e1a959f301ab06c231725ddafd3b Mon Sep 17 00:00:00 2001 From: zdg Date: Fri, 20 Sep 2024 15:16:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/plugins/shareStore.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/src/plugins/shareStore.js b/src/renderer/src/plugins/shareStore.js index d846f1f..0db8119 100644 --- a/src/renderer/src/plugins/shareStore.js +++ b/src/renderer/src/plugins/shareStore.js @@ -172,6 +172,8 @@ const getObjValue = (obj, key) => { const findDifferences = (obj1, obj2) => { const differences = {}; function compareObjects(o1, o2, path = '') { + if (o1 == null) return + if (o2 == null) return for (const key in o1) { if (o1.hasOwnProperty(key)) { const newPath = path ? `${path}.${key}` : key;