summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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];
+ }
})
}
}