aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui
diff options
context:
space:
mode:
authormiriame <miriam.eini@amdocs.com>2019-05-05 11:28:34 +0300
committermiriame <miriam.eini@amdocs.com>2019-05-05 11:31:38 +0300
commit51bc2809a58a24b20d851c10d21bcccf2a849e6b (patch)
treee37aaa7e55c5605c6ebba7f873830cf6d45ba45e /catalog-ui
parent817a37488f68f26d9d88895a808b975c898dc0ce (diff)
fix bug: [SDC-2275]Service properties - issue on save multiple properties
Issue-ID: SDC-2275 Change-Id: If9e44517727547dbf2bd28ecbaa96be6114bd848 Signed-off-by: miriame <miriam.eini@amdocs.com>
Diffstat (limited to 'catalog-ui')
-rw-r--r--catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts b/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts
index 037b7f4963..38278c9d4f 100644
--- a/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts
+++ b/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts
@@ -532,7 +532,8 @@ export class PropertiesAssignmentComponent {
handleSuccess = (response) => {
// reset each changed property with new value and remove it from changed properties list
response.forEach((resProp) => {
- const changedProp = <PropertyFEModel>this.changedData.shift();
+ const changedProp = <PropertyFEModel>_.find(this.changedData, changedDataObject => changedDataObject.uniqueId === resProp.uniqueId);
+ this.changedData = _.filter(this.changedData, changedDataObject => changedDataObject.uniqueId !== resProp.uniqueId);
this.propertiesUtils.resetPropertyValue(changedProp, resProp.value);
});
resolve(response);