fix: zero values are now shown in the grid

This commit is contained in:
Kacper Kula 2026-05-04 11:32:54 +01:00
parent 8972c9c7f4
commit e293a3750c

View file

@ -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 };
}