Skip to content

Commit

Permalink
fix: goToPage method (#2502)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanjadhaw committed Aug 3, 2020
1 parent 90bf5c2 commit f3194d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin-hooks/usePagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function reducer(state, action, previousState, instance) {
canNavigate =
pageCount === -1
? page.length >= state.pageSize
: newPageIndex < pageCount
: newPageIndex <= pageCount
} else if (newPageIndex < state.pageIndex) {
// prev page
canNavigate = newPageIndex > -1
Expand Down

1 comment on commit f3194d6

@vercel
Copy link

@vercel vercel bot commented on f3194d6 Aug 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.