diff --git a/client/components/Search/Search.vue b/client/components/Search/Search.vue index 582b646..c29382c 100644 --- a/client/components/Search/Search.vue +++ b/client/components/Search/Search.vue @@ -111,7 +111,7 @@ - +
@@ -233,9 +233,13 @@ const componentOptions = { this.updateSearchFromRouteQuery(this.$route); }, list: { - handler() { - this.updatePageCount(); + handler(newValue) { this.updateGenreTreeIfNeeded(); + + if (this.prevList.totalFound != newValue.totalFound) + this.updatePageCount(); + + this.prevList = _.cloneDeep(newValue); }, deep: true, }, @@ -278,6 +282,7 @@ class Search { limit = 20; //stuff + prevList = {}; list = { queryFound: -1, totalFound: 0,