diff --git a/packages/block-editor/src/store/selectors.js b/packages/block-editor/src/store/selectors.js index 210cd26aeaa954..df138f566a466b 100644 --- a/packages/block-editor/src/store/selectors.js +++ b/packages/block-editor/src/store/selectors.js @@ -1595,7 +1595,7 @@ const isBlockVisibleInTheInserter = ( checkedBlocks.add( blockName ); // If parent blocks are not visible, child blocks should be hidden too. - if ( !! blockType.parent?.length ) { + if ( Array.isArray( blockType?.parent ) ) { return blockType.parent.some( ( name ) => ( blockName !== name &&