Skip to content

Commit

Permalink
Prevented sending SyntheticEvent to the setState functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sallaa committed Jul 1, 2024
1 parent 39f6327 commit 4710455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SideMenu/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ const SideMenu = ({ tools, setOpenAlert }) => {
{listItems.map((item, key) => {
const element = (
<Box>
<ListItemButton onClick={item.handleOpenCategoryDrawer}>
<ListItemButton onClick={() => item.handleOpenCategoryDrawer()}>
{isSideMenuOpen ? (
<>
<ListItemIcon
Expand Down

0 comments on commit 4710455

Please sign in to comment.