From 38fbd4a3d3b046a0065624513b4711a4eb001949 Mon Sep 17 00:00:00 2001 From: vashjs Date: Fri, 8 Nov 2024 14:17:36 +0100 Subject: [PATCH] revert --- src/utils/pollForStatus.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/utils/pollForStatus.js b/src/utils/pollForStatus.js index b7778724..39599d34 100644 --- a/src/utils/pollForStatus.js +++ b/src/utils/pollForStatus.js @@ -7,11 +7,7 @@ export const pollForStatus = (ky, id) => { try { const data = await ky.get(`bulk-operations/${id}`).json(); if (data.status !== JOB_STATUSES.DATA_MODIFICATION_IN_PROGRESS) { - clearInterval(intervalId); - resolve(data.status); - } else if (data.status === JOB_STATUSES.FAILED) { - clearInterval(intervalId); - reject(data.errorMessage); + clearInterval(intervalId); resolve(data.status); } } catch (error) { clearInterval(intervalId); reject(error); } }, interval);