[WEB-4807] fix: workspace menu item highlight #7677

This commit is contained in:
Anmol Singh Bhatia 2025-08-29 20:23:31 +05:30 committed by GitHub
parent 4293892178
commit 7c1bbf4a6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
},
};