Skip to content

Commit

Permalink
Merge pull request #437 from CBIIT/icdc_2278
Browse files Browse the repository at this point in the history
icdc_2278 set correct rowperpage count (hot_fix)
  • Loading branch information
iksheth authored Dec 10, 2021
2 parents f4960d0 + 014f48d commit 0311d61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class ServerPaginatedTableView extends React.Component {
if (srcData !== 'undefined' && srcData.length !== this.state.rowsPerPage && this.props.count > this.state.rowsPerPage && this.props.localRowsPerPage === null) {
this.changePage(0, {});
} else {
if (this.props.count < this.state.rowsPerPage) {
if (this.props.count < this.state.rowsPerPage || srcData.length < this.state.rowsPerPage) {
this.setState({
rowsPerPage: 10,
});
Expand Down

0 comments on commit 0311d61

Please sign in to comment.