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)
|
index === 0 || (index > 0 && selectedOrganization)
|
||||||
)
|
)
|
||||||
.map((link: SidebarLink, index: number) => {
|
.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 (
|
return (
|
||||||
<SimpleTooltip
|
<SimpleTooltip
|
||||||
key={index}
|
key={index}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user