We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1fbcd4 commit 56629ccCopy full SHA for 56629cc
2 files changed
cmd/lists.go
@@ -79,6 +79,10 @@ func handleGetLists(c echo.Context) error {
79
out.Total = out.Results[0].Total
80
out.Page = pg.Page
81
out.PerPage = pg.PerPage
82
+ if out.PerPage == 0 {
83
+ out.PerPage = out.Total
84
+ }
85
+
86
return c.JSON(http.StatusOK, okResp{out})
87
}
88
frontend/src/views/Lists.vue
@@ -130,7 +130,7 @@ export default Vue.extend({
130
isFormVisible: false,
131
queryParams: {
132
page: 1,
133
- orderBy: 'created_at',
+ orderBy: 'id',
134
order: 'asc',
135
},
136
};
0 commit comments