Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Vanessa37919252ec08
diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts
index b2810f7a15..227871d3aa 100644
--- a/app/src/protyle/render/av/col.ts
+++ b/app/src/protyle/render/av/col.ts
@@ -767,7 +767,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element, previousID?: st
const menu = new Menu("av-header-add");
const avID = blockElement.getAttribute("data-av-id");
if (typeof previousID === "undefined") {
- previousID = blockElement.querySelector(".av__row--header .av__cell:last-child").getAttribute("data-col-id");
+ previousID = Array.from(blockElement.querySelectorAll(".av__row--header .av__cell")).pop().getAttribute("data-col-id");
}
menu.addItem({
icon: "iconAlignLeft",