diff --git a/edsdme/blocks/search/SearchCards.js b/edsdme/blocks/search/SearchCards.js index 0f5b639..45aec6f 100644 --- a/edsdme/blocks/search/SearchCards.js +++ b/edsdme/blocks/search/SearchCards.js @@ -238,7 +238,7 @@ export default class Search extends PartnerCards { } getPageNumArray() { - const countAll = this.selectedTypeCount(); + const countAll = this.getTotalResults(); const numberOfPages = Math.ceil(countAll / this.cardsPerPage); this.totalPages = numberOfPages; // eslint-disable-next-line consistent-return @@ -247,7 +247,7 @@ export default class Search extends PartnerCards { get cardsCounter() { const startIndex = (this.paginationCounter - 1) * this.cardsPerPage; - const countAll = this.selectedTypeCount(); + const countAll = this.getTotalResults(); const endIndex = startIndex + this.cardsPerPage; const lastCardIndex = countAll < endIndex ? countAll : endIndex; @@ -256,7 +256,7 @@ export default class Search extends PartnerCards { return `${startIndex + 1} - ${lastCardIndex}`; } - selectedTypeCount() { + getTotalResults() { let countAll; switch (this.contentType) { case 'page': @@ -333,7 +333,7 @@ export default class Search extends PartnerCards { ${!this.mobileView ? html`