Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed May 16, 2023
1 parent 41c1cf7 commit f61c627
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/block-library/src/navigation/edit/leaf-more-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@ function AddSubmenuItem( { block, onClose, expandedState, expand } ) {
useDispatch( blockEditorStore );

const clientId = block.clientId;
const blockName = useSelect(
( select ) => select( blockEditorStore ).getBlockName( clientId ),
[ clientId ]
const isDisabled = ! BLOCKS_THAT_CAN_BE_CONVERTED_TO_SUBMENU.includes(
block.name
);
const isDisabled =
! BLOCKS_THAT_CAN_BE_CONVERTED_TO_SUBMENU.includes( blockName );
return (
<MenuItem
icon={ addSubmenu }
Expand Down

0 comments on commit f61c627

Please sign in to comment.