Skip to content

Commit

Permalink
Block Settings Menu: Don't render 'Move to' if there is only one block.
Browse files Browse the repository at this point in the history
  • Loading branch information
getsource committed Jul 2, 2021
1 parent 8a520e9 commit 7f54222
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,9 @@ export function BlockSettingsDropdown( {
</MenuItem>
</>
) }
{ ! isLocked && (
{ ! isLocked && ! onlyBlock && (
<MenuItem
onClick={ flow( onClose, onMoveTo ) }
disabled={ onlyBlock }
>
{ __( 'Move to' ) }
</MenuItem>
Expand Down

0 comments on commit 7f54222

Please sign in to comment.