fix: adjust admin user routes and sidebar deps

This commit is contained in:
Esdras Renan 2025-10-13 11:59:09 -03:00
parent 4951e82834
commit 076c0df7f9
3 changed files with 10 additions and 7 deletions

View file

@ -133,7 +133,7 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
})
})
return open
}, [pathname])
}, [pathname, canAccess])
const [expanded, setExpanded] = React.useState<Set<string>>(initialExpanded)
React.useEffect(() => {