Skip to content

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

:art:

Vanessa9b7385bcb75d
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index bc88e97946..b1ddc5e290 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -138,11 +138,13 @@ export const getTypeByCellElement = (cellElement: Element) => {
};
export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type?: TAVCol) => {
+ if (cellElements.length === 0 || (cellElements.length === 1 && !cellElements[0])) {
+ return;
+ }
if (!type) {
type = getTypeByCellElement(cellElements[0]);
}
- if (type === "updated" || type === "created" || document.querySelector(".av__mask") ||
- cellElements.length === 0 || (cellElements.length === 1 && !cellElements[0])) {
+ if (type === "updated" || type === "created" || document.querySelector(".av__mask")) {
return;
}
if (type === "block" && (cellElements.length > 1 || !cellElements[0].getAttribute("data-detached"))) {