[WEB-536] fix: analytics highlight while switching between scope_and_demand and custom tab. (#3767)

This commit is contained in:
Prateek Shourya 2024-02-23 18:52:12 +05:30 committed by GitHub
parent e0a4d7a12a
commit 5571d42e10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -256,7 +256,7 @@ export const SIDEBAR_MENU_ITEMS: {
label: "Analytics",
href: `/analytics`,
access: EUserWorkspaceRoles.MEMBER,
highlight: (pathname: string, baseUrl: string) => pathname === `${baseUrl}/analytics`,
highlight: (pathname: string, baseUrl: string) => pathname.includes(`${baseUrl}/analytics`),
Icon: BarChart2,
},
{