From a4bcae87ee24a2592c8c43b669efc9d284a588c2 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 12 Oct 2023 12:11:29 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E6=95=B0=E6=8D=AE=E5=BA=93=E6=95=B0?= =?UTF-8?q?=E5=AD=97=E5=A1=AB0=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/render/av/cell.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index 53c2c8608..dd2665bf1 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;