From e65d7f0db7b0883af90feb71cf46d55395e866a8 Mon Sep 17 00:00:00 2001 From: pkarw Date: Sat, 28 Apr 2018 00:45:14 +0200 Subject: [PATCH] Pagination fix --- core/pages/Category.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/core/pages/Category.vue b/core/pages/Category.vue index 0faef04223..c1ae769e3d 100644 --- a/core/pages/Category.vue +++ b/core/pages/Category.vue @@ -51,6 +51,7 @@ export default { if (!category) { self.$router.push('/') } else { + this.pagination.current = 0 let searchProductQuery = baseFilterProductsQuery(store.state.category.current, config.products.defaultFilters) self.$bus.$emit('current-category-changed', store.state.category.current_path) self.$store.dispatch('category/products', { searchProductQuery: searchProductQuery, populateAggregations: true, route: route, current: self.pagination.current, perPage: self.pagination.perPage, filters: config.products.defaultFilters })