Skip to content

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

:bug: https://ld246.com/article/1700535997206

Vanessa70b3406e03e9
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index 6c7908e174..d5f0dde4f7 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -294,9 +294,9 @@ const updateCellValue = (protyle: IProtyle, type: TAVCol, cellElements: HTMLElem
checked?: boolean,
} = {};
if (type === "number") {
- oldValue.content = parseFloat(oldValue.content as string);
+ oldValue.content = parseFloat(item.textContent.trim());
oldValue.isNotEmpty = typeof oldValue.content === "number" && !isNaN(oldValue.content);
- inputValue.content = parseFloat(inputValue.content as string);
+ inputValue.content = parseFloat((avMaskElement.querySelector(".b3-text-field") as HTMLInputElement).value);
inputValue.isNotEmpty = typeof inputValue.content === "number" && !isNaN(inputValue.content);
} else if (type === "checkbox") {
const useElement = item.querySelector("use");