@bluemarble/bm-components 0.0.80 → 0.0.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -15202,7 +15202,7 @@ function useGrid({ columns, filters = [], rowsPerPageOptions = [30, 60, 100] })
|
|
|
15202
15202
|
const endPage = startPage + rowsPerPage;
|
|
15203
15203
|
return sortedData.slice(startPage, endPage);
|
|
15204
15204
|
}, [sortedBy, sortedDirection, filteredData, currentPage, rowsPerPage]);
|
|
15205
|
-
const totalNumberOfPages = Math.
|
|
15205
|
+
const totalNumberOfPages = Math.ceil(filteredData.length / rowsPerPage) - 1;
|
|
15206
15206
|
return {
|
|
15207
15207
|
data: displayData,
|
|
15208
15208
|
set,
|