From 27ab86cac85a239c210d2af35bef9197067db2e5 Mon Sep 17 00:00:00 2001 From: Enix Date: Thu, 20 Sep 2018 11:08:57 +0800 Subject: [PATCH] feat: mount toggle button anyway --- src/driver/core/SideBar.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/driver/core/SideBar.js b/src/driver/core/SideBar.js index 24c1686..4dd3192 100644 --- a/src/driver/core/SideBar.js +++ b/src/driver/core/SideBar.js @@ -41,11 +41,18 @@ const init = dispatch => async () => { dispatch(setShouldShow, nothingWentWrong && shouldShow) aggressivelyGotTreeData .then(treeData => { - dispatch({ logoContainerElement: DOMHelper.insertLogoMountPoint() }) dispatch({ treeData }) }) + .catch(err => { + dispatch(handleError, err) + }) + .then(() => { + dispatch({ logoContainerElement: DOMHelper.insertLogoMountPoint() }) + }) } catch (err) { dispatch(handleError, err) + } finally { + dispatch({ logoContainerElement: DOMHelper.insertLogoMountPoint() }) } }