Skip to content

Commit

Permalink
Transforms only show for empty link.
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Oct 26, 2021
1 parent 741882a commit 14a8530
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions packages/block-library/src/navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,12 +743,18 @@ export default function NavigationLinkEdit( {
)
}
onRemove={ removeLink }
renderControlBottom={ () => (
<LinkControlTransforms
block={ thisBlock }
transforms={ featuredTransforms }
/>
) }
renderControlBottom={
! url
? () => (
<LinkControlTransforms
block={ thisBlock }
transforms={
featuredTransforms
}
/>
)
: null
}
/>
</Popover>
) }
Expand Down

0 comments on commit 14a8530

Please sign in to comment.