fix a bug with the sidebar nav
This commit is contained in:
parent
4d66133171
commit
a9944aa5e0
@ -75,7 +75,10 @@ const Links = (): ReactElement => {
|
||||
index === 0 || (index > 0 && selectedOrganization)
|
||||
)
|
||||
.map((link: SidebarLink, index: number) => {
|
||||
const active: boolean = path.startsWith(link.href);
|
||||
const active: boolean =
|
||||
index === 0
|
||||
? path === link.href
|
||||
: path.startsWith(link.href);
|
||||
return (
|
||||
<SimpleTooltip
|
||||
key={index}
|
||||
|
Loading…
x
Reference in New Issue
Block a user