aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-designer-ui/src
diff options
context:
space:
mode:
Diffstat (limited to 'workflow-designer-ui/src')
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionSaga.js22
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,