Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/7536

Vanessa23bece401fcd
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts
index 171b64af89..def76de61e 100644
--- a/app/src/protyle/render/av/render.ts
+++ b/app/src/protyle/render/av/render.ts
@@ -50,17 +50,17 @@ export const avRender = (element: Element, cb?: () => void) => {
row.cells.forEach((cell, index) => {
let text: string
if (cell.valueType === "text") {
- text = cell.value?.content || ""
+ text = cell.value?.text.content || ""
} else if (cell.valueType === "block") {
- text = cell.value.block.content || ""
+ text = cell.value?.block.content || ""
} else if (cell.valueType === "number") {
- text = cell.value.number.content || ""
+ text = cell.value?.number.content || ""
} else if (cell.valueType === "select") {
- text = cell.value.select.content || ""
+ text = cell.value?.select.content || ""
} else if (cell.valueType === "mSelect") {
- text = cell.value.mSelect.content || ""
+ text = cell.value?.mSelect.content || ""
} else if (cell.valueType === "date") {
- text = cell.value.date.content || ""
+ text = cell.value?.date.content || ""
}
tableHTML += `<div class="av__cell" ${index === 0 ? 'data-block-id="' + (cell.value.block.id || "") + '"' : ""} data-id="${cell.id}" data-index="${index}" style="width: ${data.columns[index].width || 200}px;${cell.bgColor ? `background-color:${cell.bgColor};` : ""}${cell.color ? `color:${cell.color};` : ""}">${text}</div>`;
});