From 14a8530ac65ebfe6e062a6748d4b70c9cc676c1e Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Tue, 26 Oct 2021 13:49:55 +1100 Subject: [PATCH] Transforms only show for empty link. --- .../block-library/src/navigation-link/edit.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/block-library/src/navigation-link/edit.js b/packages/block-library/src/navigation-link/edit.js index 0d7e4febf6c5d0..8dadbf7969d594 100644 --- a/packages/block-library/src/navigation-link/edit.js +++ b/packages/block-library/src/navigation-link/edit.js @@ -743,12 +743,18 @@ export default function NavigationLinkEdit( { ) } onRemove={ removeLink } - renderControlBottom={ () => ( - - ) } + renderControlBottom={ + ! url + ? () => ( + + ) + : null + } /> ) }