An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/8053
Vanessad697660c4104
diff --git a/app/src/card/viewCards.ts b/app/src/card/viewCards.tsindex 90e71b3018..7128f2ae43 100644--- a/app/src/card/viewCards.ts+++ b/app/src/card/viewCards.ts@@ -54,23 +54,22 @@ export const viewCards = (deckID: string, title: string, deckType: "Tree" | "" |}}});- if (response.data.blocks.length === 0) {- return;- }- edit = new Protyle(dialog.element.querySelector("#cardPreview") as HTMLElement, {- blockId: "",- render: {- gutter: true,- breadcrumbDocName: true- },- });- if (window.siyuan.mobile) {- window.siyuan.mobile.popEditor = edit;- }- if (window.siyuan.config.editor.readOnly) {- disabledProtyle(edit.protyle);+ if (response.data.blocks.length > 0) {+ edit = new Protyle(dialog.element.querySelector("#cardPreview") as HTMLElement, {+ blockId: "",+ render: {+ gutter: true,+ breadcrumbDocName: true+ },+ });+ if (window.siyuan.mobile) {+ window.siyuan.mobile.popEditor = edit;+ }+ if (window.siyuan.config.editor.readOnly) {+ disabledProtyle(edit.protyle);+ }+ getArticle(edit, dialog.element.querySelector(".b3-list-item--focus")?.getAttribute("data-id"));}- getArticle(edit, dialog.element.querySelector(".b3-list-item--focus")?.getAttribute("data-id"));const previousElement = dialog.element.querySelector('[data-type="previous"]');const nextElement = dialog.element.querySelector('[data-type="next"]');const listElement = dialog.element.querySelector(".b3-list--background");