From 5d0bdc1bff1c364fcc8341d5c5b5ce40d9d074cb Mon Sep 17 00:00:00 2001 From: Scott J Dickerson Date: Wed, 11 Aug 2021 10:29:32 -0400 Subject: [PATCH] ACTION_IN_PROGRESS_START/STOP sagas need to unwrap the action Since `startProgress()` and `stopProgress()` sagas are not top-level action saga, the action handling sagas fro `ACTION_IN_PROGRESS_START` and `ACTION_IN_PROGRESS_STOP` need to unwrap the payload from the action. --- src/sagas/vmChanges.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sagas/vmChanges.js b/src/sagas/vmChanges.js index 2ba21ed99..7fe565d7d 100644 --- a/src/sagas/vmChanges.js +++ b/src/sagas/vmChanges.js @@ -486,8 +486,8 @@ export default [ takeLatest(C.REMOVE_VM, removeVm), // VM Status Changes - takeEvery(C.ACTION_IN_PROGRESS_START, startProgress), - takeEvery(C.ACTION_IN_PROGRESS_STOP, stopProgress), + takeEvery(C.ACTION_IN_PROGRESS_START, function* (action) { yield startProgress(action.payload) }), + takeEvery(C.ACTION_IN_PROGRESS_STOP, function* (action) { yield stopProgress(action.payload) }), takeEvery(C.SHUTDOWN_VM, shutdownVm), takeEvery(C.RESTART_VM, restartVm), takeEvery(C.START_VM, startVm),