Skip to content

Commit

Permalink
fixed crash of datahub due to missing children on actions props on se…
Browse files Browse the repository at this point in the history
…rver side first render
  • Loading branch information
ichim-david committed Oct 14, 2024
1 parent 972de75 commit 64aafb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/Banner/Banner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 64aafb7

Please sign in to comment.