From ddf7fc9614e48ae3bfbd38c5dbc186db78db8fc7 Mon Sep 17 00:00:00 2001 From: AllenFang Date: Tue, 31 May 2016 23:26:28 +0800 Subject: [PATCH] fix #482 --- src/pagination/PaginationList.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pagination/PaginationList.js b/src/pagination/PaginationList.js index 43f446076..6a51f8e71 100644 --- a/src/pagination/PaginationList.js +++ b/src/pagination/PaginationList.js @@ -162,6 +162,7 @@ class PaginationList extends Component { getPages() { let pages; let endPage = this.totalPages; + if (endPage <= 0) return []; let startPage = Math.max( this.props.currPage - Math.floor(this.props.paginationSize / 2), this.props.pageStartIndex