diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts index 8b262d4df..69fba04bc 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts @@ -225,14 +225,17 @@ export class EditPdMasterComponent implements OnInit { //get sub product list based on prokduct id getSubproductList(productID:string){ + this.customerSegmentList=this.customerSegmentAllList; + console.log('this.customerSegmentAllList',this.customerSegmentAllList); if(productID != '4'){ + console.log('if',this.customerSegmentList); this.subProductList= this.productList.filter(item => item.product_id == productID); this.subProductList=this.subProductList[0].subproducts; - this.customerSegmentList=this.customerSegmentAllList; } - else if(productID == '4'){ + if(productID == '4'){ let filtered = this.customerSegmentAllList.filter(s => (s.customer_segment).includes('Self')); this.customerSegmentList = filtered; + console.log('else',this.customerSegmentList); } } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html index 25299b839..dda62f45a 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html @@ -3,7 +3,7 @@