From fa1bce4c8f76018207bc12eff926d2bbc3d7f77a Mon Sep 17 00:00:00 2001 From: Robert Damaceno Date: Fri, 18 Feb 2022 17:58:31 -0300 Subject: [PATCH] fix(ActionButton.js): improving actionButtons.filter of _renderActions to not catch childrens that be 'null' --- ActionButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ActionButton.js b/ActionButton.js index ec1b9e3..a79b0a9 100644 --- a/ActionButton.js +++ b/ActionButton.js @@ -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 = {