From 72e765b20548eef9ff18e7eec1025b464632852c Mon Sep 17 00:00:00 2001 From: Amumu Date: Wed, 20 Jun 2018 20:49:17 +0800 Subject: [PATCH] fix global hmr error --- src/layouts/BasicLayout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index b0ae923c..e587bc95 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -281,7 +281,7 @@ class BasicLayout extends React.PureComponent { } } -export default connect(({ user, global, loading }) => ({ +export default connect(({ user, global = {}, loading }) => ({ currentUser: user.currentUser, collapsed: global.collapsed, fetchingNotices: loading.effects['global/fetchNotices'], -- GitLab