Loading src/app/shared/components/partyManagement/edit-individuals/edit-individuals.component.ts +8 −1 Original line number Diff line number Diff line Loading @@ -82,6 +82,8 @@ export class EditIndividualsComponent implements OnInit { testbedProvider = false hasGeographicSite = false subscriptions = new Subscription() ngOnInit() { Loading @@ -98,6 +100,11 @@ export class EditIndividualsComponent implements OnInit { if (val ==='TESTBED_PROVIDER') { this.testbedProvider=true this.retrieveGeographicSite() console.log(this.geographicSite) if (this.geographicSite.place[0].geographicAddress.city!==null){ this.hasGeographicSite=true console.log(this.hasGeographicSite) } } } this.retrieveIndividual() Loading Loading @@ -309,7 +316,7 @@ export class EditIndividualsComponent implements OnInit { console.log(updateObj) let updatedGeographicSite: GeographicSite if (this.newIndividual) { if (!this.hasGeographicSite) { this.geographicSiteService.createGeographicSite(updateObj).subscribe( data => { updatedGeographicSite = data }, Loading Loading
src/app/shared/components/partyManagement/edit-individuals/edit-individuals.component.ts +8 −1 Original line number Diff line number Diff line Loading @@ -82,6 +82,8 @@ export class EditIndividualsComponent implements OnInit { testbedProvider = false hasGeographicSite = false subscriptions = new Subscription() ngOnInit() { Loading @@ -98,6 +100,11 @@ export class EditIndividualsComponent implements OnInit { if (val ==='TESTBED_PROVIDER') { this.testbedProvider=true this.retrieveGeographicSite() console.log(this.geographicSite) if (this.geographicSite.place[0].geographicAddress.city!==null){ this.hasGeographicSite=true console.log(this.hasGeographicSite) } } } this.retrieveIndividual() Loading Loading @@ -309,7 +316,7 @@ export class EditIndividualsComponent implements OnInit { console.log(updateObj) let updatedGeographicSite: GeographicSite if (this.newIndividual) { if (!this.hasGeographicSite) { this.geographicSiteService.createGeographicSite(updateObj).subscribe( data => { updatedGeographicSite = data }, Loading