Fixed: return to page 1 after searching

This commit is contained in:
philipp lang 2021-06-28 23:26:03 +02:00
parent 5dd251f451
commit 82cdca1034
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ export default {
computed: { computed: {
isearch: { isearch: {
set: debounce(function(v) { set: debounce(function(v) {
this.$inertia.visit(this.qs({ search: v }), { this.$inertia.visit(this.qs({ page: 1, search: v }), {
only: ['search', 'data'], only: ['page', 'search', 'data'],
preserveState: true, preserveState: true,
}); });
}, 500), }, 500),