Skip to content

Commit

Permalink
fix: Ignore nullish jobs, closes #176
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Mar 10, 2021
1 parent d3203d8 commit d23be60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/queues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const getDataForQueues = async (
return {
name,
counts: counts as Record<Status, number>,
jobs: jobs.map((job) => formatJob(job, queue)),
jobs: jobs.filter(Boolean).map((job) => formatJob(job, queue)),
readOnlyMode: queue.readOnlyMode,
}
}),
Expand Down

0 comments on commit d23be60

Please sign in to comment.