Fix lists pagination breaking on the UI.
This commit is contained in:
parent
f1fbcd473e
commit
56629ccb1c
2 changed files with 5 additions and 1 deletions
|
@ -79,6 +79,10 @@ func handleGetLists(c echo.Context) error {
|
|||
out.Total = out.Results[0].Total
|
||||
out.Page = pg.Page
|
||||
out.PerPage = pg.PerPage
|
||||
if out.PerPage == 0 {
|
||||
out.PerPage = out.Total
|
||||
}
|
||||
|
||||
return c.JSON(http.StatusOK, okResp{out})
|
||||
}
|
||||
|
||||
|
|
|
@ -130,7 +130,7 @@ export default Vue.extend({
|
|||
isFormVisible: false,
|
||||
queryParams: {
|
||||
page: 1,
|
||||
orderBy: 'created_at',
|
||||
orderBy: 'id',
|
||||
order: 'asc',
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue