Skip to content

Commit ddf7fc9

Browse files
committed
fix #482
1 parent af3deb8 commit ddf7fc9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pagination/PaginationList.js

+1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ class PaginationList extends Component {
162162
getPages() {
163163
let pages;
164164
let endPage = this.totalPages;
165+
if (endPage <= 0) return [];
165166
let startPage = Math.max(
166167
this.props.currPage - Math.floor(this.props.paginationSize / 2),
167168
this.props.pageStartIndex

0 commit comments

Comments
 (0)