From 054d05be70540fbe1757641e343bf34e646b8c16 Mon Sep 17 00:00:00 2001 From: vashjs Date: Wed, 30 Oct 2024 10:32:30 +0100 Subject: [PATCH] UIBULKED-553 Remove redundant error handling --- .../BulkEditInAppPreviewModal/BulkEditPreviewModal.js | 2 +- .../BulkEditManualUploadModal/BulkEditManualUploadModal.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/BulkEditPane/BulkEditListResult/BulkEditInAppPreviewModal/BulkEditPreviewModal.js b/src/components/BulkEditPane/BulkEditListResult/BulkEditInAppPreviewModal/BulkEditPreviewModal.js index ef901a46..c571eee0 100644 --- a/src/components/BulkEditPane/BulkEditListResult/BulkEditInAppPreviewModal/BulkEditPreviewModal.js +++ b/src/components/BulkEditPane/BulkEditListResult/BulkEditInAppPreviewModal/BulkEditPreviewModal.js @@ -45,7 +45,7 @@ export const BulkEditPreviewModal = ({ id: bulkDetails?.id, approach: APPROACHES.IN_APP, step: EDITING_STEPS.COMMIT, - }).then(showErrorMessage); + }); onChangesCommited(); diff --git a/src/components/BulkEditPane/BulkEditListResult/BulkEditManualUploadModal/BulkEditManualUploadModal.js b/src/components/BulkEditPane/BulkEditListResult/BulkEditManualUploadModal/BulkEditManualUploadModal.js index fc2a9d7c..369dc632 100644 --- a/src/components/BulkEditPane/BulkEditListResult/BulkEditManualUploadModal/BulkEditManualUploadModal.js +++ b/src/components/BulkEditPane/BulkEditListResult/BulkEditManualUploadModal/BulkEditManualUploadModal.js @@ -25,7 +25,6 @@ import { import { useBulkOperationDelete } from '../../../../hooks/api/useBulkOperationDelete'; import { ListFileUploader } from '../../../shared/ListFileUploader'; import { useSearchParams } from '../../../../hooks/useSearchParams'; -import { useErrorMessages } from '../../../../hooks/useErrorMessages'; const BulkEditManualUploadModal = ({ operationId, @@ -39,7 +38,6 @@ const BulkEditManualUploadModal = ({ const callout = useShowCallout(); const controller = useRef(null); const { identifier, criteria } = useSearchParams(); - const { showErrorMessage } = useErrorMessages(); const { fileUpload } = useUpload(); const { bulkOperationStart } = useBulkOperationStart(); @@ -104,7 +102,7 @@ const BulkEditManualUploadModal = ({ id: operationId, step: EDITING_STEPS.COMMIT, approach: APPROACHES.MANUAL, - }).then(showErrorMessage); + }); setCountOfRecords(committedNumOfRecords);