mirror of
https://github.com/h-sphere/sql-seal.git
synced 2026-07-22 10:10:28 +00:00
fix: zero values are now shown in the grid
This commit is contained in:
parent
8972c9c7f4
commit
e293a3750c
1 changed files with 2 additions and 2 deletions
|
|
@ -86,8 +86,8 @@ export class SqlocalWorkerDatabase {
|
|||
return { ...ret, [key]: value ? 1 : 0 };
|
||||
}
|
||||
|
||||
// Convert falsy values to null
|
||||
if (!value) {
|
||||
// Convert falsy values to null, but preserve numeric 0
|
||||
if (!value && value !== 0) {
|
||||
return { ...ret, [key]: null };
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue