Browse Source

fix: page cursor and pagination (#5541)

* fix: search results not displaying on first page
* fix: page cursor position stays the same between page selection
pull/5582/head
Sandhya Veludandi 2 years ago
committed by GitHub
parent
commit
4e5da41d35
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions
  1. 6
      client/components/common/search-results.vue

6
client/components/common/search-results.vue

@ -105,6 +105,9 @@ export default {
} else {
this.searchIsLoading = true
}
},
results() {
this.cursor = 0
}
},
mounted() {
@ -153,6 +156,9 @@ export default {
skip() {
return !this.search || this.search.length < 2
},
result() {
this.pagination = 1
},
update: (data) => _.get(data, 'pages.search', {}),
watchLoading (isLoading) {
this.searchIsLoading = isLoading

Loading…
Cancel
Save