Make sure we never ask for page 0 when fetching model index data

This commit is contained in:
Lance Edgar 2020-02-23 21:09:26 -06:00
parent 24667ead2a
commit a9c4548594

View file

@ -96,7 +96,7 @@ export default {
} }
if (this.paginated) { if (this.paginated) {
params.per_page = this.perPage params.per_page = this.perPage
params.page = this.page params.page = this.page || 1
} }
this.$http.get(this.getApiIndexUrl(), {params: params}).then(response => { this.$http.get(this.getApiIndexUrl(), {params: params}).then(response => {
this.data = response.data this.data = response.data