From f3bfcb5fe61c0887c4b5c6c85ab917514337d5e6 Mon Sep 17 00:00:00 2001 From: Glen Davies Date: Mon, 31 Oct 2022 17:12:35 +1300 Subject: [PATCH] remove inadvertent commit --- packages/block-library/src/cover/edit/index.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/block-library/src/cover/edit/index.js b/packages/block-library/src/cover/edit/index.js index b6154ba520c013..4bd7360cef205f 100644 --- a/packages/block-library/src/cover/edit/index.js +++ b/packages/block-library/src/cover/edit/index.js @@ -168,12 +168,9 @@ export function CoverEdit( { const hasBackground = !! ( url || overlayColor.color || gradientValue ); const hasInnerBlocks = useSelect( - ( select ) => { - return ( - select( blockEditorStore ).getBlock( clientId ).innerBlocks - .length > 0 - ); - }, + ( select ) => + select( blockEditorStore ).getBlock( clientId ).innerBlocks.length > + 0, [ clientId ] );