Skip to content

Commit

Permalink
add null check when job is undefined (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
hisabimbola authored Jan 14, 2021
1 parent 654c279 commit 79c7317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/getDataForQeues.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = async function getDataForQeues({ queues, query = {} }) {
return {
name,
counts,
jobs: jobs.map(formatJob),
jobs: jobs.filter((job) => !!job).map(formatJob),
}
}),
)
Expand Down

0 comments on commit 79c7317

Please sign in to comment.