An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/10067
Vanessaf21ecce2a3d1
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.tsindex b2f17d9de4..e5877ebc79 100644--- a/app/src/protyle/render/av/cell.ts+++ b/app/src/protyle/render/av/cell.ts@@ -568,7 +568,7 @@ export const renderCell = (cellValue: IAVCellValue, wrap: boolean) => {}} else if (cellValue.type === "relation") {cellValue?.relation?.contents?.forEach((item, index) => {- text += `<span class="av__celltext--ref" style="margin-right: 8px" data-id="${cellValue?.relation?.blockIDs[index]}">${item}</span>`;+ text += `<span class="av__celltext--ref" style="margin-right: 8px" data-id="${cellValue?.relation?.blockIDs[index]}">${item || "Untitled"}</span>`;});}if (["text", "template", "url", "email", "phone", "number", "date", "created", "updated"].includes(cellValue.type) &&diff --git a/app/src/protyle/render/av/relation.ts b/app/src/protyle/render/av/relation.tsindex b7afb79a29..063f014d59 100644--- a/app/src/protyle/render/av/relation.ts+++ b/app/src/protyle/render/av/relation.ts@@ -237,7 +237,7 @@ export const bindRelationEvent = (options: {if (hasId) {avData.view.rows.find((item) => {if (item.id === hasId) {- selectHTML += genSelectItemHTML("selected", item.id, item.cells[cellIndex].value.block.content || item.cells[cellIndex].value.block.id);+ selectHTML += genSelectItemHTML("selected", item.id, item.cells[cellIndex].value.block.content || "Untitled");return true;}});@@ -245,7 +245,7 @@ export const bindRelationEvent = (options: {});avData.view.rows.forEach((item) => {if (!hasIds.includes(item.id)) {- html += genSelectItemHTML("unselect", item.id, item.cells[cellIndex].value.block.content || item.cells[cellIndex].value.block.id);+ html += genSelectItemHTML("unselect", item.id, item.cells[cellIndex].value.block.content || "Untitled");}});options.menuElement.innerHTML = `<div class="b3-menu__items">${selectHTML || genSelectItemHTML("empty")}