Skip to content

Commit

Permalink
[material-ui][usePagination] Update pagination siblingsEnd calculat…
Browse files Browse the repository at this point in the history
…ion logic (#42667)

Co-authored-by: ZeeshanTamboli <[email protected]>
  • Loading branch information
Mini-ghost and ZeeshanTamboli authored Jun 21, 2024
1 parent e8abc17 commit b9b9c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-material/src/usePagination/usePagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function usePagination(props = {}) {
boundaryCount + siblingCount * 2 + 2,
),
// Less than endPages
endPages.length > 0 ? endPages[0] - 2 : count - 1,
count - boundaryCount - 1,
);

// Basic list of items to render
Expand Down

0 comments on commit b9b9c21

Please sign in to comment.