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/10547

Vanessaf87ac0146190
diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.ts
index dcc7c4cd7a..a51936040c 100644
--- a/app/src/protyle/render/av/blockAttr.ts
+++ b/app/src/protyle/render/av/blockAttr.ts
@@ -114,9 +114,11 @@ export const genAVValueHTML = (value: IAVCellValue) => {
break;
case "relation":
value?.relation?.contents?.forEach((item) => {
- const rollupText = genAVRollupHTML(item);
- if (rollupText) {
- html += rollupText + ", ";
+ if (item) {
+ const rollupText = genAVRollupHTML(item);
+ if (rollupText) {
+ html += rollupText + ", ";
+ }
}
});
if (html && html.endsWith(", ")) {