From db74f2cf3f8eb7734e049dc7ea1a52de508da1c4 Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 1 Jul 2025 13:28:30 +0700 Subject: [PATCH] fix: check newValue not null --- core/src/browser/models/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/browser/models/utils.ts b/core/src/browser/models/utils.ts index 6f8e106c4..cb1baacd7 100644 --- a/core/src/browser/models/utils.ts +++ b/core/src/browser/models/utils.ts @@ -62,7 +62,7 @@ export const normalizeValue = (key: string, value: any) => { ) { // Convert to float const newValue = parseFloat(value) - if (newValue && !isNaN(newValue)) { + if (newValue !== null && !isNaN(newValue)) { return newValue } }