Fix crash when refresh class page

This commit is contained in:
Leonardo Murça 2022-06-29 15:58:55 -03:00
parent b8f227374a
commit a70b7fe29c

View file

@ -96,7 +96,10 @@ const menuOptions = activePath => [
unselectedIcon: <HomeOutlined />, unselectedIcon: <HomeOutlined />,
pathname: '/home', pathname: '/home',
isActive: isActive:
activePath === '/home' || activePath === '/login' || activePath === '/', activePath === '/home' ||
activePath === '/login' ||
activePath === '/' ||
activePath.indexOf('class') !== -1,
}, },
{ {
id: 1, id: 1,