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);