lib/blacklight/solr/facet_paginator.rb in blacklight-5.5.0 vs lib/blacklight/solr/facet_paginator.rb in blacklight-5.5.1

- old
+ new

@@ -99,10 +99,11 @@ params.merge(request_keys[:sort] => sort_method, request_keys[:page] => nil) end private # setting limit to 0 implies no limit + # @return an array of facets on the page def items_for_limit(values) - limit != 0 ? values.slice(offset, limit) : values + limit == 0 ? values : values.take(limit) end end end