Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fancy-llamas-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"sqlseal": patch
---

fixing issue with zero values not displaying correctly
4 changes: 2 additions & 2 deletions src/modules/database/sqlocal/sqlocalWorkerDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}

Expand Down
Loading