Fix pagination

This commit is contained in:
Pierre Burgy 2017-05-04 19:14:24 +02:00
parent 23bc7e9f0c
commit 21d51a23cb

View File

@ -154,7 +154,7 @@ class Pagination extends React.Component { // eslint-disable-line react/prefer-s
}
// Add next page link
if (!this.isLastPage() && !this.isFirstPage()) {
if (!this.isLastPage() && this.props.count > this.props.limit) {
linksOptions.push({
value: this.props.currentPage + 1,
isActive: false,