From 64aafb7451a0f08daeead1b22b0ba0676b641857 Mon Sep 17 00:00:00 2001 From: David Ichim Date: Mon, 14 Oct 2024 12:02:10 +0300 Subject: [PATCH] fixed crash of datahub due to missing children on actions props on server side first render --- src/ui/Banner/Banner.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (