diff --git a/packages/block-editor/src/components/inspector-controls/index.native.js b/packages/block-editor/src/components/inspector-controls/index.native.js index 6c3e2026ddb805..88d1d0acbf03e9 100644 --- a/packages/block-editor/src/components/inspector-controls/index.native.js +++ b/packages/block-editor/src/components/inspector-controls/index.native.js @@ -30,7 +30,9 @@ const FillWithSettingsButton = ( { children, ...props } ) => { } - { React.Children.count( children ) > 0 && } + { React.Children.toArray( children ).filter( + ( child ) => child.props.dontCount !== true + ).length > 0 && } ); }; diff --git a/packages/block-library/src/cover/edit.native.js b/packages/block-library/src/cover/edit.native.js index f460cf494390cb..ee6bf178396b93 100644 --- a/packages/block-library/src/cover/edit.native.js +++ b/packages/block-library/src/cover/edit.native.js @@ -281,6 +281,7 @@ const Cover = ( { onNavigationBack={ closeSettingsBottomSheet } onCloseBottomSheet={ () => {} } isBottomSheetContentScrolling={ () => {} } + dontCount={ true } /> );