Make sure we never ask for page 0 when fetching model index data
This commit is contained in:
parent
24667ead2a
commit
a9c4548594
|
@ -96,7 +96,7 @@ export default {
|
|||
}
|
||||
if (this.paginated) {
|
||||
params.per_page = this.perPage
|
||||
params.page = this.page
|
||||
params.page = this.page || 1
|
||||
}
|
||||
this.$http.get(this.getApiIndexUrl(), {params: params}).then(response => {
|
||||
this.data = response.data
|
||||
|
|
Loading…
Reference in a new issue