Skip to content

Commit

Permalink
Merge branch 'feat/refinement-list-show-more-count' of github.com:alg…
Browse files Browse the repository at this point in the history
…olia/instantsearch into feat/refinement-list-show-more-count
  • Loading branch information
mikedavis77 committed Jan 25, 2024
2 parents b00aa8b + e98802a commit 2a562d2
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,14 +430,6 @@ const connectRefinementList: RefinementListConnector =
showMoreCount = showMoreTotalCount - currentLimit;
}

if (showMore) {
const showMoreTotalCount =
showMoreLimit < facetValues.length
? showMoreLimit
: facetValues.length;
showMoreCount = showMoreTotalCount - currentLimit;
}

if (renderOptions.results) {
toggleShowMore = createToggleShowMore(renderOptions, this);
}
Expand Down

0 comments on commit 2a562d2

Please sign in to comment.