Skip to content

Commit

Permalink
fix: sidemenu renders twice
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinaSpasevska committed Dec 27, 2023
1 parent da7e34f commit 77f9785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/apps/tools/src/context/layout-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const useToolbar = (
const index = menuData.indexOf(activeMenu);
setActiveMenuIndex(index);
}
}, [activeMenuIndex, isMenuOpen]);
}, []);
};

const LayoutContextProvider = (props: PropsWithChildren): JSX.Element => {
Expand Down

0 comments on commit 77f9785

Please sign in to comment.