diff --git a/src/views/gutenberg-blocks/blocks/faceted-search/theme.vue b/src/views/gutenberg-blocks/blocks/faceted-search/theme.vue index 0ada8cf20..2cc714e8a 100644 --- a/src/views/gutenberg-blocks/blocks/faceted-search/theme.vue +++ b/src/views/gutenberg-blocks/blocks/faceted-search/theme.vue @@ -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;