From eefcd491405c5f54a9b717446324a3992b13c281 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 3 Aug 2021 12:14:47 +0200 Subject: [PATCH] MOBILE-3832 core: Fix infinite calls if error on infinite loading --- src/core/components/infinite-loading/infinite-loading.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/components/infinite-loading/infinite-loading.ts b/src/core/components/infinite-loading/infinite-loading.ts index 994f6ea43..33eb9d81b 100644 --- a/src/core/components/infinite-loading/infinite-loading.ts +++ b/src/core/components/infinite-loading/infinite-loading.ts @@ -69,7 +69,7 @@ export class CoreInfiniteLoadingComponent implements OnChanges { * like the Ionic component does. */ protected async checkScrollDistance(): Promise { - if (!this.enabled) { + if (!this.enabled || this.error || this.loadingMore) { return; }