Skip to content

Commit

Permalink
Add empty URL check
Browse files Browse the repository at this point in the history
  • Loading branch information
vcanales committed Jul 11, 2023
1 parent c96d173 commit d46234d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation-link/link-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export function LinkUI( props ) {
showInitialSuggestions={ true }
withCreateSuggestion={ userCanCreate }
createSuggestion={ handleCreate }
forceIsEditingLink={ ! props.isDraft }
forceIsEditingLink={ ! props.isDraft && ! url }
createSuggestionButtonText={ ( searchTerm ) => {
let format;

Expand Down

0 comments on commit d46234d

Please sign in to comment.