Skip to content

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

:art:

Vanessa86e4228a3c1b
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 8d1c695c72..a7d7cc5d0c 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -2297,7 +2297,7 @@ export class Gutter {
let dataNodeId = nodeElement.getAttribute("data-node-id");
if (type === "NodeAttributeView" && target) {
const rowElement = hasClosestByClassName(target, "av__row");
- if (rowElement && !rowElement.classList.contains("av__row--header")) {
+ if (rowElement && !rowElement.classList.contains("av__row--header") && rowElement.dataset.id) {
element = rowElement;
const bodyElement = hasClosestByClassName(rowElement, "av__body") as HTMLElement;
let iconAriaLabel = isMac() ? window.siyuan.languages.rowTip : window.siyuan.languages.rowTip.replace("⇧", "Shift+");