diff options
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-table/nsi-table.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-table/nsi-table.component.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-table/nsi-table.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-table/nsi-table.component.ts index 8a85f91c..203df8a6 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-table/nsi-table.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-table/nsi-table.component.ts @@ -31,6 +31,7 @@ export class NsiTableComponent implements OnInit { getNsiList (): void{ this.loading = true; this.isSelect = false; + this.listOfData = []; let paramsObj = { pageNo: this.pageIndex, pageSize: this.pageSize @@ -45,7 +46,9 @@ export class NsiTableComponent implements OnInit { if (+result_code === 200) { this.total = record_number; this.loading = false; - this.listOfData = nsi_service_instances; + if(nsi_service_instances !== null && nsi_service_instances.length >0) { + this.listOfData = nsi_service_instances; + } } }, (res) => { this.loading = false; |