An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/15639
Vanessad47a8ffe0212
diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.tsindex c720c50f94..608166814b 100644--- a/app/src/plugin/API.ts+++ b/app/src/plugin/API.ts@@ -267,9 +267,12 @@ export const expandDocTree = async (options: {options.isSetCurrent = true;}if (isNotebook) {- liElement = file.element.querySelector(`.b3-list[data-url="${options.id}"]`).firstElementChild as HTMLElement;+ liElement = file.element.querySelector(`.b3-list[data-url="${options.id}"]`)?.firstElementChild as HTMLElement;} else {const response = await fetchSyncPost("api/block/getBlockInfo", {id: options.id});+ if (response.code === -1) {+ return;+ }notebookId = response.data.box;liElement = await file.selectItem(response.data.box, response.data.path, undefined, undefined, options.isSetCurrent);}