浏览代码

:bug: https://github.com/siyuan-note/siyuan/issues/10049

Vanessa 6 月之前
父节点
当前提交
5b3fa67332
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/protyle/render/av/cell.ts

+ 1 - 1
app/src/protyle/render/av/cell.ts

@@ -78,7 +78,7 @@ export const genCellValueByElement = (colType: TAVCol, cellElement: HTMLElement)
         };
         };
         if (colType === "block" && textElement.dataset.id) {
         if (colType === "block" && textElement.dataset.id) {
             cellValue.block.id = textElement.dataset.id;
             cellValue.block.id = textElement.dataset.id;
-            if (textElement.previousElementSibling.classList.contains("b3-menu__avemoji")) {
+            if (textElement.previousElementSibling?.classList.contains("b3-menu__avemoji")) {
                 cellValue.block.icon = textElement.previousElementSibling.getAttribute("data-unicode");
                 cellValue.block.icon = textElement.previousElementSibling.getAttribute("data-unicode");
             }
             }
         }
         }