Unverified Commit 4e5da41d authored by Sandhya Veludandi's avatar Sandhya Veludandi Committed by GitHub

fix: page cursor and pagination (#5541)

* fix: search results not displaying on first page * fix: page cursor position stays the same between page selection
parent fdeb4a48
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment