set a default limit of 25 to match the first available settings panel option

This commit is contained in:
kim 2025-04-18 15:01:52 +01:00
commit ab8cdd5df5
2 changed files with 2 additions and 2 deletions

View file

@ -119,7 +119,7 @@ func (m *Module) TokensInfoGETHandler(c *gin.Context) {
page, errWithCode := paging.ParseIDPage(c,
0, // min limit
100, // max limit
20, // default limit
25, // default limit
)
if errWithCode != nil {
apiutil.ErrorHandler(c, errWithCode, m.processor.InstanceGetV1)

View file

@ -36,7 +36,7 @@ export default function TokensSearchForm() {
// Populate search form using values from
// urlQueryParams, to allow paging.
const form = {
limit: useTextInput("limit", { defaultValue: urlQueryParams.get("limit") ?? "20" })
limit: useTextInput("limit", { defaultValue: urlQueryParams.get("limit") ?? "25" })
};
// On mount, trigger search.