From b5ce7972f5b633c93da1d7b874a9771519cba12b Mon Sep 17 00:00:00 2001 From: chisom chima Date: Thu, 25 Apr 2024 07:07:32 +0100 Subject: [PATCH] fix: fix typeError that crashes app when job overview is clicked --- src/components/JobOverview/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/JobOverview/helper.js b/src/components/JobOverview/helper.js index bcc679ac4..c2fa96b7d 100644 --- a/src/components/JobOverview/helper.js +++ b/src/components/JobOverview/helper.js @@ -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 }, })