You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem
In the readme under Tables -> React demos -> Sortable - responsive in the React.useEffect setSortedRows(sortedData.slice((page - 1) * perPage, page * perPage - 1)); should be setSortedRows(sortedData.slice((page - 1) * perPage, page * perPage)); because slice end is exclusive. The demo code says the pagination is pages 1-10 but only shows nine results.
Expected behavior
The example code should be changed to
Describe the problem
In the readme under Tables -> React demos -> Sortable - responsive in the React.useEffect
setSortedRows(sortedData.slice((page - 1) * perPage, page * perPage - 1));
should besetSortedRows(sortedData.slice((page - 1) * perPage, page * perPage));
because slice end is exclusive. The demo code says the pagination is pages 1-10 but only shows nine results.Expected behavior
The example code should be changed to
What is your environment?
The text was updated successfully, but these errors were encountered: