Skip to content

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

:bug: 数据库数字填0无效

Vanessaa4bcae87ee24
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index 53c2c8608e..dd2665bf19 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -435,9 +435,9 @@ const updateCellValue = (protyle: IProtyle, type: TAVCol, cellElements: HTMLElem
};
if (type === "number") {
oldValue.content = parseFloat(oldValue.content as string);
- oldValue.isNotEmpty = !!oldValue.content;
+ oldValue.isNotEmpty = typeof oldValue.content === "number" && !isNaN(oldValue.content);
inputValue.content = parseFloat(inputValue.content as string);
- inputValue.isNotEmpty = !!inputValue.content;
+ inputValue.isNotEmpty = typeof inputValue.content === "number" && !isNaN(inputValue.content);
}
if (objEquals(inputValue, oldValue)) {
return;