diff options
author | Yarin Dekel <yarind@amdocs.com> | 2019-01-06 13:47:23 +0200 |
---|---|---|
committer | Avi Gaffa <avi.gaffa@amdocs.com> | 2019-01-06 12:04:09 +0000 |
commit | b4064e3d63d04da3997757597686bbe49754e457 (patch) | |
tree | cbb559f05212886f77a7aefba230faa6322a33ed | |
parent | 3bfe76a41d7c46d6b367801a0802eb8d4273dfe4 (diff) |
version data not saved when empty artifact
Issue-ID: SDC-2035
Change-Id: Ibee4d133ca29a5499f6abf90ff665915d4c1d496
Signed-off-by: Yarin Dekel <yarind@amdocs.com>
-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, |