diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts index 8d1c695c7..a7d7cc5d0 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+");