Skip to content

Commit

Permalink
Update link.extension.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nielslyngsoe authored Nov 7, 2024
1 parent 1dfbe63 commit 9bb53e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 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,9 @@ export default class UmbTiptapToolbarLinkExtensionApi extends UmbTiptapToolbarEl

const anchor = this.#getAnchorFromQueryString(queryString);

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

if (!url) return null;

Expand Down

0 comments on commit 9bb53e5

Please sign in to comment.