minor pageable code error.

pull/3113/head
Taloth Saldono 9 years ago
parent 8c31af608b
commit ecb4835a16

@ -19,7 +19,7 @@ module.exports = function() {
originalEventHandler.apply(this, [].slice.call(arguments, 1));
var totalPages = Math.ceil(this.state.totalRecords / pageSize);
var totalPages = Math.max(1,Math.ceil(this.state.totalRecords / pageSize));
var newPage = Math.min(currentPage, totalPages);
if (newPage !== this.state.currentPage) {

Loading…
Cancel
Save