From 1dfbe6328235d2a4b2fa5b777b0999a060fb5ad0 Mon Sep 17 00:00:00 2001 From: leekelleher Date: Thu, 7 Nov 2024 13:31:39 +0000 Subject: [PATCH] Tiptap Link Picker, fixes anchor with an empty URL it was previous appending the anchor to a stringified `null`. --- src/packages/tiptap/extensions/toolbar/link.extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/tiptap/extensions/toolbar/link.extension.ts b/src/packages/tiptap/extensions/toolbar/link.extension.ts index 31760d8f07..5db705dea4 100644 --- a/src/packages/tiptap/extensions/toolbar/link.extension.ts +++ b/src/packages/tiptap/extensions/toolbar/link.extension.ts @@ -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;