diff --git a/frontend/src/components/AppLayout.tsx b/frontend/src/components/AppLayout.tsx index 5aea6f2..27b5af9 100644 --- a/frontend/src/components/AppLayout.tsx +++ b/frontend/src/components/AppLayout.tsx @@ -34,9 +34,6 @@ const AppLayout = () => { const navigate = useNavigate(); const [isSignedIn, setIsSignedIn] = useState(false); const [currentUser, setCurrentUser] = useState | null>(null); - const [lastDatasetId, setLastDatasetId] = useState( - localStorage.getItem("last_dataset_id") - ); const syncAuthState = useCallback(async () => { const token = localStorage.getItem("access_token"); @@ -66,17 +63,6 @@ const AppLayout = () => { void syncAuthState(); }, [location.pathname, syncAuthState]); - useEffect(() => { - const datasetMatch = location.pathname.match(/^\/dataset\/(\d+)\/(status|stats)$/); - if (!datasetMatch) { - return; - } - - const datasetId = datasetMatch[1]; - localStorage.setItem("last_dataset_id", datasetId); - setLastDatasetId(datasetId); - }, [location.pathname]); - const onAuthButtonClick = () => { if (isSignedIn) { localStorage.removeItem("access_token"); @@ -109,14 +95,6 @@ const AppLayout = () => {
- - - -