From 5a9bd6cd46587b8b3879ed15dbe5172411dce264 Mon Sep 17 00:00:00 2001 From: Sunday Ogbonna Date: Tue, 25 Jul 2023 19:37:33 +0100 Subject: [PATCH] fix: repo filter invisibility on initial visit --- pages/feed/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/feed/index.tsx b/pages/feed/index.tsx index 6c6095bfe5..b501a5b5e1 100644 --- a/pages/feed/index.tsx +++ b/pages/feed/index.tsx @@ -87,7 +87,7 @@ const Feeds: WithPageLayout = (props: HighlightSSRProps) => { } else if (activeTab === "following") { setRepoList(repoTofilterList(followersRepo)); } - }, [activeTab]); + }, [activeTab, repos]); useEffect(() => { if (singleHighlight && !openSingleHighlight) {