- For Info part in VIM, UI will check for location value mandatorily.
Fixed this by adding condition to check null or undefined values before going inside location values loop.
Change-Id: I8ff265aa364b41131b3e99d3712e964b94f05aa8
Signed-off-by: SANDHYA.JS <sandhya.j@tataelxsi.co.in>
this.restService.getResource(environment.VIMACCOUNTS_URL + '/' + this.paramsID)
.subscribe((vimAccountsData: VimAccountDetails) => {
this.showDetails(vimAccountsData);
+ if (!isNullOrUndefined(vimAccountsData.config)) {
if (vimAccountsData.config.location !== undefined) {
const locationArr: string[] = vimAccountsData.config.location.split(',');
if (Array.isArray(locationArr)) {
}
});
this.configParams = vimAccountsData.config;
+ }
this.isLoadingResults = false;
}, (error: ERRORDATA) => {
this.isLoadingResults = false;