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-4807] fix: workspace menu item highlight #7677

Anmol Singh Bhatia7c1bbf4a6f3f
diff --git a/packages/constants/src/workspace.ts b/packages/constants/src/workspace.ts
index 408f0ece81..17da97296a 100644
--- a/packages/constants/src/workspace.ts
+++ b/packages/constants/src/workspace.ts
@@ -312,7 +312,7 @@ export const WORKSPACE_SIDEBAR_STATIC_NAVIGATION_ITEMS: Record<string, IWorkspac
labelTranslationKey: "projects",
href: `/projects/`,
access: [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER, EUserWorkspaceRoles.GUEST],
- highlight: (pathname: string, url: string) => pathname.includes(url),
+ highlight: (pathname: string, url: string) => pathname === url,
},
};