diff options
Diffstat (limited to 'workflow-designer-ui/src/main')
-rw-r--r-- | workflow-designer-ui/src/main/frontend/src/features/version/versionSaga.js | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/workflow-designer-ui/src/main/frontend/src/features/version/versionSaga.js b/workflow-designer-ui/src/main/frontend/src/features/version/versionSaga.js index a476b41e..cf391f33 100644 --- a/workflow-designer-ui/src/main/frontend/src/features/version/versionSaga.js +++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionSaga.js @@ -101,11 +101,17 @@ function* watchUpdateVersion(action) { params: { composition, ...versionData } } = action.payload; const isArtifactValid = validateCurrentArtifact(composition); + yield call(versionApi.updateVersion, { + workflowId, + params: versionData + }); + yield put( + notificationActions.showSuccess({ + title: I18n.t('workflow.confirmationMessages.updateTitle'), + message: I18n.t('workflow.confirmationMessages.updateMessage') + }) + ); if (isArtifactValid) { - yield call(versionApi.updateVersion, { - workflowId, - params: versionData - }); yield call(versionApi.updateVersionArtifact, { workflowId, workflowName, @@ -113,14 +119,6 @@ function* watchUpdateVersion(action) { versionId: versionData.id, payload: composition }); - yield put( - notificationActions.showSuccess({ - title: I18n.t('workflow.confirmationMessages.updateTitle'), - message: I18n.t( - 'workflow.confirmationMessages.updateMessage' - ) - }) - ); } else { yield call(versionApi.deleteVersionArtifact, { workflowId, |