From b458e241fdb37949b66576902ae0d94c1b4e2ede Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Sun, 29 Mar 2020 16:51:43 +0800 Subject: [PATCH] feat: show sidebar depends on meta data --- src/components/SideBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SideBar.tsx b/src/components/SideBar.tsx index 7c2c374..c30ba5c 100644 --- a/src/components/SideBar.tsx +++ b/src/components/SideBar.tsx @@ -30,7 +30,7 @@ const RawGitako: React.FC = function RawGitako(props) { const shouldShow = intelligentToggle === null ? platform.shouldShow(props.metaData) : intelligentToggle props.setShouldShow(shouldShow) - }, [intelligentToggle]) + }, [intelligentToggle, props.metaData]) React.useEffect(() => { const { init } = props