diff options
Diffstat (limited to 'openecomp-ui')
-rw-r--r-- | openecomp-ui/src/sdc-app/onboarding/softwareProduct/dependencies/SoftwareProductDependenciesActionHelper.js | 5 |
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 }); |