Small tweak to order of definition of the default items per page to fix error in faceted block search.
This commit is contained in:
parent
7fb56297bf
commit
b2095d193e
|
@ -1078,12 +1078,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If any default items per page is set, apply it
|
|
||||||
// 12 is already the default value, se we don't set this value
|
|
||||||
if (this.defaultItemsPerPage != undefined && this.defaultItemsPerPage !== 12 ) {
|
|
||||||
this.$eventBusSearch.setItemsPerPage(this.defaultItemsPerPage, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (let key in currentQuery) {
|
for (let key in currentQuery) {
|
||||||
if (currentQuery[key] == 'true')
|
if (currentQuery[key] == 'true')
|
||||||
currentQuery[key] = true;
|
currentQuery[key] = true;
|
||||||
|
@ -1105,6 +1099,12 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If any default items per page is set, apply it
|
||||||
|
// 12 is already the default value, se we don't set this value
|
||||||
|
if (this.defaultItemsPerPage != undefined && this.defaultItemsPerPage !== 12 ) {
|
||||||
|
this.$eventBusSearch.setItemsPerPage(this.defaultItemsPerPage, true);
|
||||||
|
}
|
||||||
|
|
||||||
this.$eventBusSearchEmitter.on('isLoadingItems', isLoadingItems => {
|
this.$eventBusSearchEmitter.on('isLoadingItems', isLoadingItems => {
|
||||||
|
|
||||||
this.isLoadingItems = isLoadingItems;
|
this.isLoadingItems = isLoadingItems;
|
||||||
|
|
Loading…
Reference in New Issue