Skip to content

Commit

Permalink
fix: fix typeError that crashes app when job overview is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
Chisomchima authored and kabaros committed Apr 25, 2024
1 parent ff5c14b commit 1020cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/JobOverview/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const categoryTypesObj = categoryTypes.reduce((acc, cur) => {
}, {})

const jobToPath = (job) => ({
pathname: `/import/${categoryTypesObj[job.importType].key}`,
pathname: `/import/${categoryTypesObj[job.importType]?.key}`,
query: { id: job.id },
})

Expand Down

0 comments on commit 1020cfa

Please sign in to comment.