Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/10523

Vanessad55dcf1bf745
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index 704ceb4f09..b790f98b70 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -604,7 +604,7 @@ export const renderCell = (cellValue: IAVCellValue) => {
text = `<span class="av__celltext av__celltext--url" data-type="${cellValue.type}"${urlAttr}>${urlContent}</span>`;
} else if (cellValue.type === "block") {
if (cellValue?.isDetached) {
- text = `<span class="av__celltext">${cellValue.block.content || ""}</span>
+ text = `<span class="av__celltext">${cellValue.block.content || "Untitled"}</span>
<span class="b3-chip b3-chip--info b3-chip--small" data-type="block-more">${window.siyuan.languages.more}</span>`;
} else {
text = `<span data-type="block-ref" data-id="${cellValue.block.id}" data-subtype="s" class="av__celltext av__celltext--ref">${cellValue.block.content || "Untitled"}</span>
@@ -657,7 +657,7 @@ export const renderCell = (cellValue: IAVCellValue) => {
cellValue?.relation?.contents?.forEach((item) => {
if (item && item.block) {
if (item.isDetached) {
- text += `<span class="av__celltext" data-id="${item.block.id}">${item.block.content || ""}</span>, `;
+ text += `<span class="av__celltext" data-id="${item.block.id}">${item.block.content || "Untitled"}</span>, `;
} else {
text += `<span data-type="block-ref" data-id="${item.block.id}" data-subtype="s" class="av__celltext av__celltext--ref">${item.block.content || "Untitled"}</span>, `;
}
@@ -689,7 +689,7 @@ const renderRollup = (cellValue: IAVCellValue) => {
}
} else if (cellValue.type === "block") {
if (cellValue?.isDetached) {
- text = `<span class="av__celltext">${cellValue.block?.content || ""}</span>`;
+ text = `<span class="av__celltext">${cellValue.block?.content || "Untitled"}</span>`;
} else {
text = `<span data-type="block-ref" data-id="${cellValue.block?.id}" data-subtype="s" class="av__celltext av__celltext--ref">${cellValue.block?.content || "Untitled"}</span>`;
}