Merge pull request #128 from nikhilkutinha/master

Upgrade manual visit method replace with get
This commit is contained in:
Jonathan Reinink 2021-05-06 08:48:48 -04:00 committed by GitHub
commit 18ddb912f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ export default {
form: {
handler: throttle(function() {
let query = pickBy(this.form)
this.$inertia.replace(this.route('contacts', Object.keys(query).length ? query : { remember: 'forget' }))
this.$inertia.get(this.route('contacts'), Object.keys(query).length ? query : { remember: 'forget' }, { preserveState: true })
}, 150),
deep: true,
},

View File

@ -87,7 +87,7 @@ export default {
form: {
handler: throttle(function() {
let query = pickBy(this.form)
this.$inertia.replace(this.route('organizations', Object.keys(query).length ? query : { remember: 'forget' }))
this.$inertia.get(this.route('organizations'), Object.keys(query).length ? query : { remember: 'forget' }, { preserveState: true })
}, 150),
deep: true,
},

View File

@ -92,7 +92,7 @@ export default {
form: {
handler: throttle(function() {
let query = pickBy(this.form)
this.$inertia.replace(this.route('users', Object.keys(query).length ? query : { remember: 'forget' }))
this.$inertia.get(this.route('users'), Object.keys(query).length ? query : { remember: 'forget' }, { preserveState: true })
}, 150),
deep: true,
},