From 5571d42e1071811e799a4a4e07bce6c9774c1f59 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Fri, 23 Feb 2024 18:52:12 +0530 Subject: [PATCH] [WEB-536] fix: analytics highlight while switching between `scope_and_demand` and `custom` tab. (#3767) --- web/constants/dashboard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/constants/dashboard.ts b/web/constants/dashboard.ts index 3f251ca781..b1cfa51d73 100644 --- a/web/constants/dashboard.ts +++ b/web/constants/dashboard.ts @@ -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, }, {