Skip to content

Commit

Permalink
Merge pull request #1 from RobertDS07/fix/improving-_renderActions
Browse files Browse the repository at this point in the history
fix(ActionButton.js): improving filter to catch childrens of ActionButton
  • Loading branch information
shobhitsinghal624 authored Sep 21, 2022
2 parents ad8c7e5 + fa1bce4 commit fbc684b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ActionButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const ActionButton = props => {
let actionButtons = !Array.isArray(children) ? [children] : children;

actionButtons = actionButtons.filter(
actionButton => typeof actionButton == "object"
actionButton => actionButton && typeof actionButton == "object"
);

const actionStyle = {
Expand Down

0 comments on commit fbc684b

Please sign in to comment.