Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

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

Prateek Shourya5571d42e1071
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,
},
{