Skip to content
Snippets Groups Projects
Commit 7c9728f4fb2b authored by Frank Bessou's avatar Frank Bessou :spider_web:
Browse files

fix(getList): take into account that pagination starts at 1 in react-admin

parent f4be59529318
No related branches found
No related tags found
1 merge request!9Topic/default/fferry review
......@@ -42,7 +42,7 @@
`Any ${selection.join(", ")} ORDERBY ${sortvariable} ${
sort.order
} LIMIT ${pagination.perPage} OFFSET ${
pagination.page * pagination.perPage
(pagination.page - 1) * pagination.perPage
} WHERE ${restrictions.join(", ")}`,
{}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment