diff options
author | 2020-04-13 21:31:37 +0800 | |
---|---|---|
committer | 2020-04-13 21:31:44 +0800 | |
commit | c616b584fcc735854c97eee715cd1e31e7cfc9a7 (patch) | |
tree | 86983e1c3f37834834bff8eb7e4d25dfd7ef6e3f /usecaseui-portal/src/app/views/services/services-list/services-list.component.ts | |
parent | 95b95b80d566be8f995dd0c9673202933037d072 (diff) |
fix: Fix detail bug of service-list page3.0.2
Change-Id: I238bd0d8a759521083b312f3a6ba4c730ef5ab5e
Issue-ID: USECASEUI-369
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/services/services-list/services-list.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/views/services/services-list/services-list.component.ts | 10 |
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]; + } }) } } |