Skip to content

Commit

Permalink
fix inputs iterable error
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvdm committed Jul 16, 2024
1 parent c8b47a6 commit 098f983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/lib/deepOmitNils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const deepOmitNils = <Input>(
}

if (Array.isArray(input)) {
return input.map(deepOmitNils).filter(rejectNils) as DeepOmitNils<Input>;
return rejectNils(input.map(deepOmitNils)) as DeepOmitNils<Input>;
}

if (typeof input === "object") {
Expand Down

0 comments on commit 098f983

Please sign in to comment.