Skip to content

Commit 2ec7a03

Browse files
committed
Be explicit about the check
1 parent 388dd81 commit 2ec7a03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/block-editor/src/store/selectors.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1595,7 +1595,7 @@ const isBlockVisibleInTheInserter = (
15951595
checkedBlocks.add( blockName );
15961596

15971597
// If parent blocks are not visible, child blocks should be hidden too.
1598-
if ( !! blockType.parent?.length ) {
1598+
if ( Array.isArray( blockType?.parent ) ) {
15991599
return blockType.parent.some(
16001600
( name ) =>
16011601
( blockName !== name &&

0 commit comments

Comments
 (0)