From 714557550c7e27992c26b07dd4088708c0c63dec Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 11 Jun 2025 16:25:52 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/10414 --- app/src/protyle/render/av/col.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts index 9761372b9..2f0a6fb17 100644 --- a/app/src/protyle/render/av/col.ts +++ b/app/src/protyle/render/av/col.ts @@ -1183,7 +1183,7 @@ const genUpdateColItem = (type: TAVCol, oldType: TAVCol) => { export const addCol = (protyle: IProtyle, blockElement: Element, previousID?: string) => { const menu = new Menu("av-header-add"); const avID = blockElement.getAttribute("data-av-id"); - if (typeof previousID === "undefined") { + if (typeof previousID === "undefined" && blockElement.getAttribute("data-av-type") === "table") { previousID = Array.from(blockElement.querySelectorAll(".av__row--header .av__cell")).pop().getAttribute("data-col-id"); } const blockId = blockElement.getAttribute("data-node-id");