From e293a3750c937ee73db927ecfb11f3986ae0c6b4 Mon Sep 17 00:00:00 2001 From: Kacper Kula Date: Mon, 4 May 2026 11:32:54 +0100 Subject: [PATCH] fix: zero values are now shown in the grid --- src/modules/database/sqlocal/sqlocalWorkerDatabase.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/database/sqlocal/sqlocalWorkerDatabase.ts b/src/modules/database/sqlocal/sqlocalWorkerDatabase.ts index 5b246fc..088a8e7 100644 --- a/src/modules/database/sqlocal/sqlocalWorkerDatabase.ts +++ b/src/modules/database/sqlocal/sqlocalWorkerDatabase.ts @@ -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 }; }