Skip to content

Commit

Permalink
fix: optional show
Browse files Browse the repository at this point in the history
Signed-off-by: Tharun T <[email protected]>
  • Loading branch information
dottharun committed Jul 5, 2024
1 parent fa50381 commit ca24a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/custom/ActionButton/ActionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function ActionButton({
<ClickAwayListener onClickAway={handleClose}>
<MenuList id="split-button-menu" autoFocusItem>
{options
.filter((option) => option.show !== false)
.filter((option) => option?.show !== false)
.map((option, index) =>
option.isDivider ? (
<Divider />
Expand Down

0 comments on commit ca24a52

Please sign in to comment.