X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Fvim-accounts%2Fvim-account-details%2FVimAccountDetailsComponent.ts;fp=src%2Fapp%2Fvim-accounts%2Fvim-account-details%2FVimAccountDetailsComponent.ts;h=f580e8ae0d8c90b407c40f83c867f80a48f33538;hb=b1ec4c3fd775b8c9f8c9576cd232d2a4711056a3;hp=18dffa069d9cea9a2ae386ddac12f633292a06e8;hpb=9bae4601cd9e100e9e512f76f2a768dd7a886cdc;p=osm%2FNG-UI.git diff --git a/src/app/vim-accounts/vim-account-details/VimAccountDetailsComponent.ts b/src/app/vim-accounts/vim-account-details/VimAccountDetailsComponent.ts index 18dffa0..f580e8a 100644 --- a/src/app/vim-accounts/vim-account-details/VimAccountDetailsComponent.ts +++ b/src/app/vim-accounts/vim-account-details/VimAccountDetailsComponent.ts @@ -361,10 +361,12 @@ export class VimAccountDetailsComponent implements OnInit { if (this.getLocation !== []) { this.getLocation.filter((loc: GetLocation) => { if (loc.location !== '') { - const getLatLong: string[] = loc.location.split(','); - this.lng = +getLatLong[CONSTANTNUMBER.splitLongitude]; - this.lat = +getLatLong[CONSTANTNUMBER.splitLatitude]; - this.addMarker(getLatLong[0], loc.id, loc.name); + if (loc.location !== ',,') { + const getLatLong: string[] = loc.location.split(','); + this.lng = +getLatLong[CONSTANTNUMBER.splitLongitude]; + this.lat = +getLatLong[CONSTANTNUMBER.splitLatitude]; + this.addMarker(getLatLong[0], loc.id, loc.name); + } } }); }