diff --git a/packages/geo/src/lib/search/search-results/search-results.component.ts b/packages/geo/src/lib/search/search-results/search-results.component.ts index f8a28fd17d..953d8ea9a2 100644 --- a/packages/geo/src/lib/search/search-results/search-results.component.ts +++ b/packages/geo/src/lib/search/search-results/search-results.component.ts @@ -242,11 +242,14 @@ export class SearchResultsComponent implements OnInit, OnDestroy { } isMoreResults(group: { source: SearchSource; results: SearchResult[] }) { - // getStrategyOfType is to avoid display more result based on a filtered state const stategy = this.store.getStrategyOfType(EntityStoreFilterCustomFuncStrategy); const active = stategy?.active || false; - return !active && group.results && - group.results[group.results.length - 1].meta.nextPage === true; + if (!active) { + return group.results && group.results[group.results.length - 1].meta.nextPage === true; + } else { + return group.results?.length % +group.source.params.limit === 0 && + group.source.params.page < 30; + } + } displayMoreResults(group: {source: SearchSource; results: SearchResult[]}) {