From 1020cfaa3c5cdd496d8a183b094c3f4592f5e916 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 }, })