Skip to content

Commit ca24a52

Browse files
committed
fix: optional show
Signed-off-by: Tharun T <[email protected]>
1 parent fa50381 commit ca24a52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/custom/ActionButton/ActionButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default function ActionButton({
7272
<ClickAwayListener onClickAway={handleClose}>
7373
<MenuList id="split-button-menu" autoFocusItem>
7474
{options
75-
.filter((option) => option.show !== false)
75+
.filter((option) => option?.show !== false)
7676
.map((option, index) =>
7777
option.isDivider ? (
7878
<Divider />

0 commit comments

Comments
 (0)