diff --git a/.gitignore b/.gitignore index b512c09..76add87 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -node_modules \ No newline at end of file +node_modules +dist \ No newline at end of file diff --git a/package.json b/package.json index 1155086..218ae87 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lolocompany/react-admin-lolo", - "version": "2.1.5", + "version": "2.1.6", "description": "A library for schema-driven web apps using [Lolo](https://lolo.company), [React Admin](https://github.com/marmelab/react-admin) and [RJSF](https://github.com/rjsf-team/react-jsonschema-form)", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", diff --git a/src/providers/dataProvider.js b/src/providers/dataProvider.js index 182bde9..7eecc24 100644 --- a/src/providers/dataProvider.js +++ b/src/providers/dataProvider.js @@ -67,7 +67,7 @@ export default apiUrl => { order = 'ASC' } = params.sort || {}; - query = { + const query = { limit: perPage, sort: `${field} ${order.toLowerCase()}`, offset: (page - 1) * perPage,