Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #84 from CBIIT/ppdc-362
Browse files Browse the repository at this point in the history
fix Pagination issue
  • Loading branch information
jonkiky authored Nov 15, 2021
2 parents 095f3b3 + 3125160 commit 8c72f8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/OtTableRF.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ class OtTableRF extends Component {
<TablePagination
component="div"
count={serverSide ? totalRowsCount : data.length}
onChangePage={this.handleChangePage}
onPageChange={this.handleChangePage}
page={page}
rowsPerPage={pageSize}
rowsPerPageOptions={rowsPerPageOptions} // CHANGE MADE; Previously was rowsPerPageOptions={[]}
Expand Down
2 changes: 1 addition & 1 deletion src/components/RMTLTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ class OtTableRF extends Component {
<TablePagination
component="div"
count={serverSide ? totalRowsCount : data.length}
onChangePage={this.handleChangePage}
onPageChange={this.handleChangePage}
page={page}
rowsPerPage={pageSize}
rowsPerPageOptions={rowsPerPageOptions} // CHANGE MADE; Previously was rowsPerPageOptions={[]}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const Table = ({
}}
component="div"
count={rowCount}
onChangePage={handleChangePage}
onPageChange={handleChangePage}
onChangeRowsPerPage={handleChangeRowsPerPage}
page={page}
rowsPerPage={pageSize}
Expand Down

0 comments on commit 8c72f8b

Please sign in to comment.