Skip to content

Commit

Permalink
fix undefined/null
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Mar 7, 2024
1 parent 9a2c372 commit d7ba297
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@substreams/sink-entity-changes",
"version": "0.3.10",
"version": "0.3.11",
"description": "Substreams Sink Entity Changes",
"type": "module",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function getValuesInEntityChange(change: EntityChange) {

for (const field of change.fields) {
for (const [key, value] of Object.entries(field.newValue ?? {})) {
if (!value) {
if (value === undefined || value === null) {
continue;
}

Expand Down

0 comments on commit d7ba297

Please sign in to comment.