Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJDev committed Dec 30, 2024
1 parent 7600df6 commit ea548fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/ActionBar/ActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const overflowEffect = (
}

updateListAndMenu({items, menuItems})
} else if (numberOfItemsPossible >= childArray.length && hasActiveMenu) {
} else if (numberOfItemsPossible > childArray.length && hasActiveMenu) {
/* If the items fit in the list and there are items in the overflow menu, we need to move them back to the list */
updateListAndMenu({items: childArray, menuItems: []})
}
Expand Down

0 comments on commit ea548fe

Please sign in to comment.