We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84069b4 commit b93c64bCopy full SHA for b93c64b
view/frontend/web/instantsearch.js
@@ -391,8 +391,14 @@ define(
391
empty: '',
392
item: $('#instant-hit-template').html(),
393
},
394
- transformItems: function (items) {
+ transformItems: function (items, { results }) {
395
+ if (results.nbPages <= 1){
396
+ document.getElementById('instant-search-pagination-container').style.display = "none";
397
+ }else{
398
+ document.getElementById('instant-search-pagination-container').style.display = "block";
399
+ }
400
return items.map(function (item) {
401
+
402
item.__indexName = search.helper.lastResults.index;
403
item = transformHit(item, algoliaConfig.priceKey, search.helper);
404
// FIXME: transformHit is a global
0 commit comments