From 42fd2be8c6206b77fbeecdddb000c5b4ab48fb1f 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 8e4290f27..e3b2380e1 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 }, })