diff --git a/app/app/(admin)/components/sidebar.tsx b/app/app/(admin)/components/sidebar.tsx index 195f419bf..89c98108a 100644 --- a/app/app/(admin)/components/sidebar.tsx +++ b/app/app/(admin)/components/sidebar.tsx @@ -73,7 +73,7 @@ const SideBar: React.FC = () => { if (current != pathname) { router.push(current); } - }, []); + }, [current, pathname, router]); // useEffect(() => { // const handleStart = () => setLoading(true) // const handleComplete = () => setLoading(false);