Skip to content

Commit

Permalink
fix: 🐛 correclty handle no filter
Browse files Browse the repository at this point in the history
  • Loading branch information
nicgirault committed Jul 2, 2020
1 parent 76fff29 commit 01f9eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getList/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const parseQuery = (query: any) => {

const [from, to] = range ? JSON.parse(range) : [0, 100]

const { q, ...filters } = JSON.parse(filter || {})
const { q, ...filters } = JSON.parse(filter || '{}')

return {
offset: from,
Expand Down

0 comments on commit 01f9eb4

Please sign in to comment.