Skip to content

Commit

Permalink
Tiptap Link Picker, fixes anchor with an empty URL
Browse files Browse the repository at this point in the history
it was previous appending the anchor to a  stringified `null`.
  • Loading branch information
leekelleher committed Nov 7, 2024
1 parent f3eefdd commit 1dfbe63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packages/tiptap/extensions/toolbar/link.extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class UmbTiptapToolbarLinkExtensionApi extends UmbTiptapToolbarEl

const anchor = this.#getAnchorFromQueryString(queryString);

if (anchor) url += anchor;
if (anchor) url = (url ?? '') + anchor;

if (!url) return null;

Expand Down

0 comments on commit 1dfbe63

Please sign in to comment.