From b2d0d74e8ce9fa9d61e8dd1ef46ee8078cbf5030 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 31 Oct 2023 10:29:55 +0100 Subject: [PATCH] fix(ui): init services --- frontend/app/Router.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/app/Router.tsx b/frontend/app/Router.tsx index 72d6f7332..5bb6b520e 100644 --- a/frontend/app/Router.tsx +++ b/frontend/app/Router.tsx @@ -83,11 +83,10 @@ const Router: React.FC = (props) => { history.push(destinationPath + location.search); localStorage.removeItem(GLOBAL_DESTINATION_PATH); } - + props.mstore.initClient(); await fetchUserInfo(); const siteIdFromPath = parseInt(location.pathname.split('/')[1]); await fetchSiteList(siteIdFromPath); - props.mstore.initClient(); }; useEffect(() => {