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: Avoid errors when rendering legacy database values https://github.com/siyuan-note/siyuan/issues/15175
Daniel6f9c6a0c819c
diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.tsindex fd8d60fb1a..e56125fcad 100644--- a/app/src/protyle/render/av/blockAttr.ts+++ b/app/src/protyle/render/av/blockAttr.ts@@ -113,7 +113,10 @@ export const renderAVAttribute = (element: HTMLElement, id: string, protyle: IPr<span data-type="remove" data-row-id="${primaryValue?.blockID || ""}" class="block__icon block__icon--warning block__icon--show b3-tooltips__w b3-tooltips" aria-label="${window.siyuan.languages.removeAV}"><svg><use xlink:href="#iconTrashcan"></use></svg></span></div>`;table.keyValues?.forEach(item => {- const value = item.values[0] || createEmptyAVValue(item.key.id, item.key.type, primaryValue?.blockID);+ const value = Object.assign(+ createEmptyAVValue(item.key.id, item.key.type, primaryValue?.blockID),+ item.values[0] || {}+ );innerHTML += genAVAttributeRowHTML({nodeID: id,avID: table.avID,