diff --git a/packages/block-library/src/navigation-link/edit.js b/packages/block-library/src/navigation-link/edit.js index b60c1e2663e86f..32e6be160e1c19 100644 --- a/packages/block-library/src/navigation-link/edit.js +++ b/packages/block-library/src/navigation-link/edit.js @@ -231,7 +231,6 @@ function NavigationLinkEdit( { export default compose( [ withSelect( ( select, ownProps ) => { const { - getBlockName, getBlockAttributes, getBlockParents, getClientIdsOfDescendants, @@ -239,11 +238,9 @@ export default compose( [ } = select( 'core/block-editor' ); const { clientId } = ownProps; const rootBlock = getBlockParents( clientId )[ 0 ]; - const parentBlock = getBlockParents( clientId, true )[ 0 ]; const navigationBlockAttributes = getBlockAttributes( rootBlock ); const hasDescendants = !! getClientIdsOfDescendants( [ clientId ] ).length; - const isLevelZero = getBlockName( parentBlock ) === 'core/navigation'; - const showSubmenuIcon = navigationBlockAttributes.showSubmenuIcon && isLevelZero && hasDescendants; + const showSubmenuIcon = navigationBlockAttributes.showSubmenuIcon && hasDescendants; const isParentOfSelectedBlock = hasSelectedInnerBlock( clientId, true ); return { diff --git a/packages/block-library/src/navigation-link/editor.scss b/packages/block-library/src/navigation-link/editor.scss index 5716ce07241355..45d4b0945acfee 100644 --- a/packages/block-library/src/navigation-link/editor.scss +++ b/packages/block-library/src/navigation-link/editor.scss @@ -39,7 +39,6 @@ white-space: nowrap !important; // TODO: solve differently to prevent use of !important } - .wp-block-navigation-link__submenu-icon { margin-left: 4px; }