feat: mount toggle button anyway

This commit is contained in:
Enix 2018-09-20 11:08:57 +08:00 committed by EnixCoda
parent 55ce652610
commit 27ab86cac8

View file

@ -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() })
}
}