From 0536d2cd6596ab887a9021922e782ebea4926b62 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 31 Oct 2023 10:30:51 +0100 Subject: [PATCH] fix(ui): init services --- frontend/app/Router.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/Router.tsx b/frontend/app/Router.tsx index 5bb6b520e..3d06b3cde 100644 --- a/frontend/app/Router.tsx +++ b/frontend/app/Router.tsx @@ -74,6 +74,7 @@ const Router: React.FC = (props) => { }; const handleUserLogin = async () => { + props.mstore.initClient(); const destinationPath = localStorage.getItem(GLOBAL_DESTINATION_PATH); if ( destinationPath && @@ -83,7 +84,6 @@ 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);