Skip to content

Commit

Permalink
icdc_2278 set correct rowperpage count
Browse files Browse the repository at this point in the history
  • Loading branch information
rana22 committed Dec 7, 2021
1 parent 0947bc4 commit 014f48d
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 014f48d

Please sign in to comment.