fix: remove infinite scroll e2e test

This commit is contained in:
Thea Schöbl
2023-03-10 17:51:02 +00:00
committed by Rainer Killinger
parent 8c30a47706
commit 47565e51b0
2 changed files with 2 additions and 11 deletions

View File

@@ -80,7 +80,7 @@ export class NewsPageComponent implements OnInit {
async loadMore(infiniteScrollElement?: HTMLIonInfiniteScrollElement, more = this.pageSize): Promise<void> {
const from = this.from;
this.from += more;
const fetchedNews = await this.newsProvider.getList(this.pageSize, from, [...this.filters]);
const fetchedNews = await this.newsProvider.getList(more, from, [...this.filters]);
this.news = [...this.news, ...fetchedNews];
await infiniteScrollElement?.complete();