فهرست منبع

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

Vanessa 1 سال پیش
والد
کامیت
f87ac01461
1فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 5 3
      app/src/protyle/render/av/blockAttr.ts

+ 5 - 3
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(", ")) {