Skip to content

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

:bug: https://github.com/siyuan-note/siyuan/issues/18051

Daniele4443a2adb16
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts
index 0180d7c79a..57053d0064 100644
--- a/app/src/dialog/processSystem.ts
+++ b/app/src/dialog/processSystem.ts
@@ -88,7 +88,7 @@ export const setDefRefCount = (data: {
/// #if MOBILE
liElement = window.siyuan.mobile.docks.file.element.querySelector(`li[data-node-id="${data.rootID}"]`);
/// #else
- liElement = (getDockByType("file").data.file as Files).element.querySelector(`li[data-node-id="${data.rootID}"]`);
+ liElement = (getDockByType("file")?.data["file"] as Files)?.element.querySelector(`li[data-node-id="${data.rootID}"]`);
/// #endif
if (liElement) {
const counterElement = liElement.querySelector(".counter");