fix(ui): init services

This commit is contained in:
Shekar Siri 2023-10-31 10:29:55 +01:00
parent bfc4cc301d
commit b2d0d74e8c

View file

@ -83,11 +83,10 @@ const Router: React.FC<RouterProps> = (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(() => {