From c616b584fcc735854c97eee715cd1e31e7cfc9a7 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Mon, 13 Apr 2020 21:31:37 +0800 Subject: fix: Fix detail bug of service-list page Change-Id: I238bd0d8a759521083b312f3a6ba4c730ef5ab5e Issue-ID: USECASEUI-369 Signed-off-by: cyuamber --- .../views/services/services-list/services-list.component.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'usecaseui-portal/src/app/views/services/services-list/services-list.component.ts') 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]; + } }) } } -- cgit 1.2.3-korg