From f87ac01461909874f03f40dbf27f9c33ec117b68 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 8 Mar 2024 21:48:19 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/10547 --- app/src/protyle/render/av/blockAttr.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.ts index dcc7c4cd7..a51936040 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(", ")) {