Fixed the bug with the tab indicators

This commit is contained in:
Vladyslav Matsiiako
2023-02-20 20:30:03 -08:00
parent 5aa75ecd3f
commit ea5811c24c

View File

@@ -274,7 +274,7 @@ export const AppLayout = ({ children }: LayoutProps) => {
<Link href={`/dashboard/${currentWorkspace?._id}`} passHref>
<a>
<MenuItem
isSelected={router.asPath === `/dashboard/${currentWorkspace?._id}`}
isSelected={router.asPath.includes(`/dashboard/${currentWorkspace?._id}`)}
icon={<FontAwesomeIcon icon={faKey} size="lg" />}
>
{t('nav:menu.secrets')}