Small tweak to order of definition of the default items per page to fix error in faceted block search.

This commit is contained in:
mateuswetah 2024-09-12 14:13:03 -03:00
parent 7fb56297bf
commit b2095d193e
1 changed files with 6 additions and 6 deletions

View File

@ -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) {
if (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.isLoadingItems = isLoadingItems;