Skip to content

Commit

Permalink
make page optional as backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
hanswang committed Jul 26, 2019
1 parent c61689c commit 7e15425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MUIDataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ class MUIDataTable extends React.Component {
searchText: searchText,
selectedRows: selectedRowsData,
count: props.count,
page: props.page,
page: props.page ? props.page : this.state.page,
data: tableData,
displayData: this.getDisplayData(columns, tableData, filterList, searchText),
}),
Expand Down

0 comments on commit 7e15425

Please sign in to comment.