Skip to content

Commit

Permalink
fix: Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JonaszJestem committed May 5, 2021
1 parent c186fdd commit 95faf53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/filter/filter.converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export const convertFilter = (
return {}
}

const { filters } = filterObject
const { filters } = filterObject ?? {}
const where = {}

Object.entries(filters).forEach(([fieldKey, filter]) => {
Object.entries(filters ?? {}).forEach(([fieldKey, filter]) => {
const parser = parsers.find((p) => p.isParserForType(filter))

if (parser) {
Expand Down

0 comments on commit 95faf53

Please sign in to comment.