diff --git a/src/hooks/api/useBulkOperationDetails.js b/src/hooks/api/useBulkOperationDetails.js index 314df768..35ff3628 100644 --- a/src/hooks/api/useBulkOperationDetails.js +++ b/src/hooks/api/useBulkOperationDetails.js @@ -44,13 +44,13 @@ export const useBulkOperationDetails = ({ showErrorMessage(response); if (response.status === JOB_STATUSES.FAILED || response?.errorMessage) { - clearIntervalAndRedirect('/bulk-edit', ''); + clearInterval(); } return response; } catch (e) { showErrorMessage(e); - clearIntervalAndRedirect('/bulk-edit', ''); + clearInterval(); return e; }