fix infinite pagination test (#4279)

This commit is contained in:
Eugenio Romano
2019-02-06 23:45:26 +00:00
committed by GitHub
parent 836caf5253
commit 3fd6b5d230
3 changed files with 44 additions and 17 deletions

View File

@@ -90,7 +90,12 @@ export class InfinitePaginationComponent implements OnInit, OnDestroy, Paginatio
onLoadMore() {
this.requestPaginationModel.skipCount = 0;
this.requestPaginationModel.merge = false;
this.requestPaginationModel.maxItems += this.pageSize;
if (!this.requestPaginationModel.maxItems) {
this.requestPaginationModel.maxItems = this.pageSize;
} else {
this.requestPaginationModel.maxItems += this.pageSize;
}
this.loadMore.next(this.requestPaginationModel);