From 77bafaa575d659739e254d3ae1fe83ab7c3b8dfe Mon Sep 17 00:00:00 2001 From: Sendou Date: Mon, 13 Apr 2020 18:39:19 +0300 Subject: [PATCH] fixed navitem highlight bug --- frontend-react/src/components/root/NavItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend-react/src/components/root/NavItem.tsx b/frontend-react/src/components/root/NavItem.tsx index 9783e6c09..b6cbe62fc 100644 --- a/frontend-react/src/components/root/NavItem.tsx +++ b/frontend-react/src/components/root/NavItem.tsx @@ -17,7 +17,7 @@ const NavItem: React.FC = ({ to, icon, title }) => { const location = useLocation() const isActive = - location.pathname.indexOf(to) !== -1 && location.pathname !== "/" + location.pathname.indexOf("/" + to) !== -1 && location.pathname !== "/" return (