mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-05-18 05:05:36 +02:00
Merge pull request #8509 from 01zulfi/editor/handle-empty-link-hrefs
This commit is contained in:
@@ -196,6 +196,7 @@ export function OpenLink(props: ToolProps) {
|
||||
const link = node ? findMark(node, "link") : null;
|
||||
if (!link) return null;
|
||||
const href = link?.attrs.href;
|
||||
if (!href) return null;
|
||||
|
||||
return (
|
||||
<Flex sx={{ alignItems: "center" }}>
|
||||
@@ -245,6 +246,7 @@ export function CopyLink(props: ToolProps) {
|
||||
const link = node ? findMark(node, "link") : null;
|
||||
if (!link) return null;
|
||||
const href = link?.attrs.href;
|
||||
if (!href) return null;
|
||||
|
||||
return (
|
||||
<ToolButton
|
||||
|
||||
Reference in New Issue
Block a user