webpack/scenes/Tasks/TaskActions.js in katello-4.3.0.rc3 vs webpack/scenes/Tasks/TaskActions.js in katello-4.3.0.rc4

- old
+ new

@@ -29,14 +29,15 @@ export const startPollingTasks = (key, taskSearchParams = {}) => withInterval(getTasks(bulkSearchKey(key), taskSearchParams)); export const stopPollingTasks = key => stopInterval(bulkSearchKey(key)); -const getTask = (key, task) => get({ +const getTask = (key, task, handleSuccess) => get({ key, url: `${foremanTasksApi.baseApiPath}/tasks/${task.id}`, + handleSuccess, }); -export const startPollingTask = (key, task) => - withInterval(getTask(pollTaskKey(key), task)); +export const startPollingTask = (key, task, handleSuccess) => + withInterval(getTask(pollTaskKey(key), task, handleSuccess)); export const stopPollingTask = key => stopInterval(pollTaskKey(key));