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/issues/16708

Vanessad6730613df67
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 246253b843..5c0aeaf050 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -376,7 +376,10 @@ export class Gutter {
}
}
});
- (buttonElement.parentElement.querySelector("[data-type='fold'] > svg") as HTMLElement).style.transform = hasFold ? "rotate(90deg)" : "";
+ const arrowElement = buttonElement.parentElement.querySelector("[data-type='fold'] > svg") as HTMLElement;
+ if (arrowElement) {
+ arrowElement.style.transform = hasFold ? "rotate(90deg)" : "";
+ }
const doOperations: IOperation[] = [];
const undoOperations: IOperation[] = [];
Array.from(foldElement.parentElement.children).find((listItemElement) => {