X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Fvim-accounts%2Fvim-account-details%2FVimAccountDetailsComponent.ts;h=f580e8ae0d8c90b407c40f83c867f80a48f33538;hb=c5b4782eacb966fd840b0f4e4459b7120ecd38df;hp=5621b0fa57070af9f3c60cf343925d3e96fd3d16;hpb=1245fc89f257bdc1c8db06d1f9f57e0e2eb760e2;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 5621b0f..f580e8a 100644 --- a/src/app/vim-accounts/vim-account-details/VimAccountDetailsComponent.ts +++ b/src/app/vim-accounts/vim-account-details/VimAccountDetailsComponent.ts @@ -267,7 +267,8 @@ export class VimAccountDetailsComponent implements OnInit { type: vimAccountData.vim_type, operationalState: vimAccountData._admin.operationalState, description: vimAccountData.description, - instancesData: this.nsData + instancesData: this.nsData, + resources: vimAccountData.resources !== undefined ? vimAccountData.resources : null }; } @@ -360,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); + } } }); }