Skip to content

Commit

Permalink
[WEB-536] fix: analytics highlight while switching between `scope_and…
Browse files Browse the repository at this point in the history
…_demand` and `custom` tab. (#3767)
  • Loading branch information
prateekshourya29 authored Feb 23, 2024
1 parent e0a4d7a commit 5571d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/constants/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
{
Expand Down

0 comments on commit 5571d42

Please sign in to comment.