pagination workarounds (#321)

* pagination workarounds

* update the code
This commit is contained in:
Denys Vuika
2018-04-19 08:17:23 +01:00
committed by Cilibiu Bogdan
parent cb409335b0
commit c4b03e2bb4
2 changed files with 9 additions and 8 deletions

View File

@@ -64,7 +64,8 @@ export abstract class PageComponent {
onPageLoaded(page: NodePaging) {
this.isLoading = false;
this.paging = page;
this.pagination = page.list.pagination;
// TODO: review after ADF-2768 is fixed
this.pagination = this.pagination || page.list.pagination;
this.isEmpty = !(page.list.entries && page.list.entries.length > 0);
}