summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src
diff options
context:
space:
mode:
authorsvishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>2018-04-25 11:07:18 +0300
committerEinav Keidar <einavw@amdocs.com>2018-04-30 08:37:11 +0000
commit8f5030f8cf785a9c2d869351126bc43c038434c2 (patch)
tree3b1b9e70f08e27d7338d5bfa78a385933f3e7598 /openecomp-ui/src
parent11176263571f4400d798fe947dd3a83678f31a0f (diff)
dependency for VSP creation fix
Issue-ID: SDC-1261 Change-Id: Ia4b8d53a1f9e5e96befc73242f61c5d9a5e7e777 Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Diffstat (limited to 'openecomp-ui/src')
-rw-r--r--openecomp-ui/src/sdc-app/onboarding/softwareProduct/dependencies/SoftwareProductDependenciesActionHelper.js5
1 files changed, 3 insertions, 2 deletions
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
});