Bugfix: Tiptap Link Picker, fixes anchor with an empty URL (#2522)

Tiptap Link Picker, fixes anchor with an empty URL

it was previous appending the anchor to a  stringified `null`.
This commit is contained in:
Lee Kelleher
2024-11-08 07:54:20 +00:00
committed by GitHub
parent 221ab62725
commit 327b5d3ea1

View File

@@ -75,7 +75,9 @@ export default class UmbTiptapToolbarLinkExtensionApi extends UmbTiptapToolbarEl
const anchor = this.#getAnchorFromQueryString(queryString);
if (anchor) url += anchor;
if (anchor) {
url = (url ?? '') + anchor;
}
if (!url) return null;