Skip to content

Commit

Permalink
fix(update): fix setting empty string arrays when running updates
Browse files Browse the repository at this point in the history
Related to this: shiftcode#335
Suggested changes: https://github.com/Fantom-App/dynamo-easy/pull/1/files

Tested agains db
  • Loading branch information
TanjaBayer committed Jul 24, 2022
1 parent 7d8257e commit fa06126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dynamo/expression/condition-expression-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function deepFilter(obj: any, filterFn: (value: any) => boolean): any {
}
})

return returnArr.length ? returnArr : null
return returnArr
} else if (obj instanceof Set) {
const returnArr: any[] = []
Array.from(obj).forEach((i) => {
Expand Down

0 comments on commit fa06126

Please sign in to comment.