Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: fix https://github.com/siyuan-note/siyuan/issues/11807

Vanessadabe38292669
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index e96dfeef65..af6b758e30 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -1283,7 +1283,7 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusText
label: window.siyuan.languages.copy,
icon: "iconCopy",
click() {
- let title = linkElement.dataset.title;
+ let title = linkElement.dataset.title || "";
if (title) {
title = ` "${title}"`;
}