Skip to content

Commit

Permalink
Fix move to still showing in the menu
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed May 9, 2024
1 parent f04744b commit 83a76c9
Showing 1 changed file with 12 additions and 10 deletions.
Expand Up @@ -96,16 +96,18 @@ const BlockSettingsMenuControlsSlot = ( { fillProps, clientIds = null } ) => {
/>
) }
{ fills }
{ fillProps?.canMove && ! fillProps?.onlyBlock && (
<MenuItem
onClick={ pipe(
fillProps?.onClose,
fillProps?.onMoveTo
) }
>
{ __( 'Move to' ) }
</MenuItem>
) }
{ fillProps?.canMove &&
! fillProps?.onlyBlock &&
! isContentOnly && (
<MenuItem
onClick={ pipe(
fillProps?.onClose,
fillProps?.onMoveTo
) }
>
{ __( 'Move to' ) }
</MenuItem>
) }
{ fillProps?.count === 1 && ! isContentOnly && (
<BlockModeToggle
clientId={ fillProps?.firstBlockClientId }
Expand Down

0 comments on commit 83a76c9

Please sign in to comment.