diff --git a/src/features/AppBar/Navigation/Navigation.tsx b/src/features/AppBar/Navigation/Navigation.tsx index c40c05b3..be799e3a 100644 --- a/src/features/AppBar/Navigation/Navigation.tsx +++ b/src/features/AppBar/Navigation/Navigation.tsx @@ -12,8 +12,9 @@ export const Navigation = () => { ); useEffect(() => { - if (!active) navigate('models'); - }, [active, navigate]); + const currentURL = window.location.pathname; + if (currentURL === '/') navigate('models'); + }, [navigate]); function clickTab(tab: number) { navigate(tabs[tab].path);