Skip to content

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

:art: https://github.com/siyuan-note/siyuan/pull/13981

Vanessab413b66e7f79
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index c406903232..16b3e17877 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -114,8 +114,8 @@ export class Gutter {
selectIds.push(itemId);
}));
if (!selectedIncludeGutter) {
- let gutterNodeElement;
- Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${gutterId}"]`)).find(item => {
+ let gutterNodeElement: HTMLElement;
+ Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${gutterId}"]`)).find((item: HTMLElement) => {
if (!isInEmbedBlock(item) && this.isMatchNode(item)) {
gutterNodeElement = item;
return true;