summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-portal/src/app')
-rw-r--r--usecaseui-portal/src/app/views/services/services-list/services-list.component.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts b/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts
index 76b3b6be..88d99b3a 100644
--- a/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts
+++ b/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts
@@ -394,7 +394,9 @@ export class ServicesListComponent implements OnInit {
};
this.myhttp.getE2e_nsData(paramsObj)
.subscribe((data) => {
- this.e2e_nsData = data;
+ if(data.length!==0){
+ this.e2e_nsData = data;
+ }
})
}
@@ -443,8 +445,10 @@ export class ServicesListComponent implements OnInit {
this.vnfParams.vnfInstanceId = service.vnfInstanceId;
this.myhttp.getVnfInfo(service.vnfInstanceId)
.subscribe((data) => {
- this.vnfVms = data.vnfVms;
- this.vmSelected = this.vnfVms[0];
+ if(data.vnfVms && data.vnfVms.length!==0){
+ this.vnfVms = data.vnfVms;
+ this.vmSelected = this.vnfVms[0];
+ }
})
}
}