diff --git a/src/components/Layout/Sidebar.jsx b/src/components/Layout/Sidebar.jsx
index 807cfa8..d606931 100644
--- a/src/components/Layout/Sidebar.jsx
+++ b/src/components/Layout/Sidebar.jsx
@@ -18,9 +18,7 @@ const Sidebar = ({ collapsed }) => {
if (!user?.id||user.menukeys?.length===0) return [];
return getMenuItems(user?.menukeys || []);
}, [user]);
-useEffect(()=>{
- console.log(menuClient,'menuClient');
-},[menuClient])
+
const defaultOpenKeys = useMemo(() => {
const pathSegments = location.pathname.split("/").filter(Boolean);
return pathSegments.reduce((acc, _, index) => {
@@ -30,6 +28,10 @@ useEffect(()=>{
}, []);
}, [location.pathname]);
+ const selectedKey = useMemo(() => {
+ return location.pathname;
+ }, [location.pathname]);
+
const handleMenuClick = ({ key }) => {
navigate(key);
};
@@ -48,7 +50,7 @@ useEffect(()=>{