From 8ac284255f21fd5a9c9458358835eea9e843f19a Mon Sep 17 00:00:00 2001 From: Mikita Siadykh Date: Thu, 15 Feb 2024 11:20:23 +0400 Subject: [PATCH] UIBULKED-210 fix handling error message (#481) --- .../BulkEditListSidebar/IdentifierTab/IdentifierTab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/BulkEditList/BulkEditListSidebar/IdentifierTab/IdentifierTab.js b/src/components/BulkEditList/BulkEditListSidebar/IdentifierTab/IdentifierTab.js index be43ab1c..d66a0343 100644 --- a/src/components/BulkEditList/BulkEditListSidebar/IdentifierTab/IdentifierTab.js +++ b/src/components/BulkEditList/BulkEditListSidebar/IdentifierTab/IdentifierTab.js @@ -139,7 +139,7 @@ export const IdentifierTab = () => { step: EDITING_STEPS.UPLOAD, }); - if (errorMessage.includes(ERRORS.TOKEN)) throw Error(ERRORS.TOKEN); + if (errorMessage?.includes(ERRORS.TOKEN)) throw Error(ERRORS.TOKEN); if (status === JOB_STATUSES.FAILED) throw Error(); history.replace({