chore: address linter warnings

This commit is contained in:
Gabe Kangas
2023-08-02 13:41:08 -07:00
parent d3c5e14aa0
commit 243156b307
4 changed files with 14 additions and 12 deletions

View File

@ -284,10 +284,11 @@ export const MainLayout: FC<MainLayoutProps> = ({ children }) => {
};
useEffect(() => {
menuItems.forEach(item =>
item?.children?.forEach(child => {
if (child?.key === route) setOpenKeys([...openMenuItems, item.key]);
}),
menuItems.forEach(
item =>
item?.children?.forEach(child => {
if (child?.key === route) setOpenKeys([...openMenuItems, item.key]);
}),
);
}, []);