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