fix: adjust admin user routes and sidebar deps
This commit is contained in:
parent
4951e82834
commit
076c0df7f9
3 changed files with 10 additions and 7 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue