this.isLoadingResults = true;
this.restService.getResource(environment.VNFINSTANCES_URL).subscribe((vnfInstancesData: VNFInstanceDetails[]) => {
this.vnfInstanceData = [];
- vnfInstancesData.forEach((vnfInstanceData: VNFInstanceDetails) => {
+ vnfInstancesData.forEach((vnfInstanceData: VNFInstanceDetails): void => {
const vnfDataObj: {} =
{
VNFD: vnfInstanceData['vnfd-ref'],
}
this.dataSource.load(this.vnfInstanceData).then((data: {}) => {
this.isLoadingResults = false;
- }).catch();
+ }).catch((): void => {
+ // Catch Navigation Error
+ });
}, (error: ERRORDATA) => {
this.restService.handleError(error, 'get');
this.isLoadingResults = false;