Skip to content

Commit db74f2c

Browse files
committed
fix: check newValue not null
1 parent 7b22ba8 commit db74f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/browser/models/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const normalizeValue = (key: string, value: any) => {
6262
) {
6363
// Convert to float
6464
const newValue = parseFloat(value)
65-
if (newValue && !isNaN(newValue)) {
65+
if (newValue !== null && !isNaN(newValue)) {
6666
return newValue
6767
}
6868
}

0 commit comments

Comments
 (0)