Skip to content

Commit fbc684b

Browse files
Merge pull request #1 from RobertDS07/fix/improving-_renderActions
fix(ActionButton.js): improving filter to catch childrens of ActionButton
2 parents ad8c7e5 + fa1bce4 commit fbc684b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ActionButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ const ActionButton = props => {
202202
let actionButtons = !Array.isArray(children) ? [children] : children;
203203

204204
actionButtons = actionButtons.filter(
205-
actionButton => typeof actionButton == "object"
205+
actionButton => actionButton && typeof actionButton == "object"
206206
);
207207

208208
const actionStyle = {

0 commit comments

Comments
 (0)