From 5b3fa67332061b848cd46009780aaaa36e2b19b5 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 24 Dec 2024 16:19:55 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/10049 --- app/src/protyle/render/av/cell.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index 1e01b81ed..7d8ab032e 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -78,7 +78,7 @@ export const genCellValueByElement = (colType: TAVCol, cellElement: HTMLElement) }; if (colType === "block" && 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"); } }