From 8f5030f8cf785a9c2d869351126bc43c038434c2 Mon Sep 17 00:00:00 2001 From: svishnev Date: Wed, 25 Apr 2018 11:07:18 +0300 Subject: dependency for VSP creation fix Issue-ID: SDC-1261 Change-Id: Ia4b8d53a1f9e5e96befc73242f61c5d9a5e7e777 Signed-off-by: svishnev --- .../dependencies/SoftwareProductDependenciesActionHelper.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'openecomp-ui/src/sdc-app/onboarding') diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/dependencies/SoftwareProductDependenciesActionHelper.js b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/dependencies/SoftwareProductDependenciesActionHelper.js index 4bbcaa13d5..304c0d6180 100644 --- a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/dependencies/SoftwareProductDependenciesActionHelper.js +++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/dependencies/SoftwareProductDependenciesActionHelper.js @@ -78,9 +78,10 @@ const SoftwareProductDependenciesActionHelper = { createDependency(dispatch, { softwareProductId, version, item }) { // removing the temp id - delete item.id; + let newItem = { ...item }; + delete newItem.id; // creating the new dependency - return addDepencency(softwareProductId, version, item).then(() => { + return addDepencency(softwareProductId, version, newItem).then(() => { dispatch({ type: actionTypes.ADD_SOFTWARE_PRODUCT_DEPENDENCY }); -- cgit 1.2.3-korg