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/6977
Vanessa0b410cd505ed
diff --git a/app/src/card/makeCard.ts b/app/src/card/makeCard.tsindex e2b62707f6..3e21e9f1de 100644--- a/app/src/card/makeCard.ts+++ b/app/src/card/makeCard.ts@@ -217,7 +217,7 @@ const viewCards = (deckID: string, title: string) => {breadcrumbDocName: true},});- 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");@@ -242,7 +242,7 @@ const viewCards = (deckID: string, title: string) => {}nextElement.nextElementSibling.nextElementSibling.textContent = `${pageIndex}/${cardsResponse.data.pageCount}`;listElement.innerHTML = renderViewItem(cardsResponse.data.blocks);- getArticle(edit, dialog.element.querySelector(".b3-list-item--focus").getAttribute("data-id"));+ getArticle(edit, dialog.element.querySelector(".b3-list-item--focus")?.getAttribute("data-id"));});event.stopPropagation();event.preventDefault();@@ -258,7 +258,7 @@ const viewCards = (deckID: string, title: string) => {}nextElement.nextElementSibling.nextElementSibling.textContent = `${pageIndex}/${cardsResponse.data.pageCount}`;listElement.innerHTML = renderViewItem(cardsResponse.data.blocks);- getArticle(edit, dialog.element.querySelector(".b3-list-item--focus").getAttribute("data-id"));+ getArticle(edit, dialog.element.querySelector(".b3-list-item--focus")?.getAttribute("data-id"));});event.stopPropagation();event.preventDefault();