diff --git a/web/src/contexts/ProfileProvider.test.tsx b/web/src/contexts/ProfileProvider.test.tsx index 4751c68f24..c394b5ffd5 100644 --- a/web/src/contexts/ProfileProvider.test.tsx +++ b/web/src/contexts/ProfileProvider.test.tsx @@ -34,7 +34,7 @@ const router: { navigate?: NavigateFunction } = {}; function Probe() { const navigate = useNavigate(); const { profile, setProfile } = useProfileScope(); - const { pathname, search } = useLocation(); + const { pathname, search, state } = useLocation(); useEffect(() => { router.navigate = navigate; }, [navigate]); @@ -42,6 +42,7 @@ function Probe() {