Skip to content

Commit

Permalink
fix: db value transformer 0 into empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
MontaGhanmy committed Oct 27, 2024
1 parent 414e0e1 commit 5698206
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export const transformValueToDbString = (
return +v;
}

if (type === "number") {
if (v === 0) return v;
}

return v || "";
};

Expand Down

0 comments on commit 5698206

Please sign in to comment.