Skip to content

Commit

Permalink
Merge pull request #2026 from dhis2/DHIS2-17151/backport-v38
Browse files Browse the repository at this point in the history
fix: fix typeError that crashes app when job overview is clicked
  • Loading branch information
Chisomchima authored May 2, 2024
2 parents b30e8c1 + 42fd2be commit 1544416
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 1544416

Please sign in to comment.