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/13846

Vanessae982d4c1d9fe
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index aae079e408..9e7680bade 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -430,7 +430,7 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type
const inputElement = avMaskElement.querySelector(".b3-text-field") as HTMLInputElement;
if (inputElement) {
if (["text", "email", "phone", "block", "template"].includes(type)) {
- inputElement.value = cellElements[0].querySelector(".av__celltext").textContent;
+ inputElement.value = cellElements[0].querySelector(".av__celltext")?.textContent || "";
}
inputElement.select();
inputElement.focus();