diff --git a/src/ui/Banner/Banner.jsx b/src/ui/Banner/Banner.jsx index 682377207..535125e8e 100644 --- a/src/ui/Banner/Banner.jsx +++ b/src/ui/Banner/Banner.jsx @@ -97,7 +97,7 @@ Banner.Content = ({ children, actions }) => { // actions can be a single child or an array of children // when we disable actions we get an array of false or undefined const actionsWithChildren = actions - ? React.Children.toArray(actions.props.children).some(Boolean) + ? React.Children.toArray(actions.props?.children).some(Boolean) : false; return (