From fdd153a090f773d2dd8b7ce0228db98f5b56541e Mon Sep 17 00:00:00 2001 From: vapao Date: Sat, 8 Oct 2022 16:42:35 +0800 Subject: [PATCH] =?UTF-8?q?F=20=E4=BF=AE=E5=A4=8D=E6=9C=AA=E5=88=86?= =?UTF-8?q?=E9=85=8D=E4=B8=BB=E6=9C=BA=E6=9D=83=E9=99=90=E6=97=B6=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E6=89=A7=E8=A1=8C=E7=A9=BA=E7=99=BD=E9=A1=B5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/pages/host/Selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spug_web/src/pages/host/Selector.js b/spug_web/src/pages/host/Selector.js index 4bd76a0..537d12b 100644 --- a/spug_web/src/pages/host/Selector.js +++ b/spug_web/src/pages/host/Selector.js @@ -24,7 +24,7 @@ export default observer(function (props) { hStore.initial().then(() => { store.rawRecords = hStore.rawRecords; store.rawTreeData = hStore.rawTreeData; - store.group = store.treeData[0] + store.group = store.treeData[0] || {} }) // eslint-disable-next-line react-hooks/exhaustive-deps }, [])