[CSTPER-138] Fixed issue with request pagination while retrieving external source providers

This commit is contained in:
Giuseppe Digilio
2020-10-15 12:50:02 +02:00
parent 7599938516
commit 988747e392

View File

@@ -139,7 +139,7 @@ export class SubmissionImportExternalSearchbarComponent implements OnInit {
* Load the next pages of external sources. * Load the next pages of external sources.
*/ */
public onScroll(): void { public onScroll(): void {
if (!this.sourceListLoading && this.pageInfo.currentPage <= this.pageInfo.totalPages) { if (!this.sourceListLoading && ((this.pageInfo.currentPage + 1) <= this.pageInfo.totalPages)) {
this.sourceListLoading = true; this.sourceListLoading = true;
this.findListOptions = Object.assign({}, new FindListOptions(), { this.findListOptions = Object.assign({}, new FindListOptions(), {
elementsPerPage: 5, elementsPerPage: 5,