MOBILE-3832 core: Fix infinite calls if error on infinite loading

main
Dani Palou 2021-08-03 12:14:47 +02:00
parent 9a63793cf2
commit 5a573f3dfa
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ export class CoreInfiniteLoadingComponent implements OnChanges {
* like the Ionic component does.
*/
protected async checkScrollDistance(): Promise<void> {
if (!this.enabled) {
if (!this.enabled || this.error || this.loadingMore) {
return;
}