diff --git a/packages/block-editor/src/store/selectors.js b/packages/block-editor/src/store/selectors.js index 17a2934227d7be..e61e6063a33e65 100644 --- a/packages/block-editor/src/store/selectors.js +++ b/packages/block-editor/src/store/selectors.js @@ -2842,12 +2842,12 @@ export function __unstableHasActiveBlockOverlayActive( state, clientId ) { } export function __unstableIsWithinBlockOverlay( state, clientId ) { - let parent = state.blocks.parents[ clientId ]; + let parent = state.blocks.parents.get( clientId ); while ( !! parent ) { if ( __unstableHasActiveBlockOverlayActive( state, parent ) ) { return true; } - parent = state.blocks.parents[ parent ]; + parent = state.blocks.parents.get( parent ); } return false; } diff --git a/packages/edit-site/src/components/layout/style.scss b/packages/edit-site/src/components/layout/style.scss index fba44a51307a82..eea527d18904f3 100644 --- a/packages/edit-site/src/components/layout/style.scss +++ b/packages/edit-site/src/components/layout/style.scss @@ -4,15 +4,6 @@ color: $white; display: flex; flex-direction: column; - - &:not(.is-edit-mode) { - // Ideally, this component shouldn't render in edit mode - // but it happens sporadically, this is a hack - // to prevent it from showing up in view mode. - .block-editor-block-list__insertion-point { - display: none; - } - } } .edit-site-layout__hub {