Skip to content

Commit

Permalink
fix: adjust current page to display detailpanel for remote data
Browse files Browse the repository at this point in the history
  • Loading branch information
Domino987 committed Apr 21, 2022
1 parent a8ef9b3 commit bcbb53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ export default class MaterialTable extends React.Component {
renderData={this.state.renderData}
data={this.state.data}
renderSummaryRow={this.props.renderSummaryRow}
currentPage={this.state.currentPage}
currentPage={this.isRemoteData() ? 0 : this.state.currentPage}
initialFormData={props.initialFormData}
pageSize={this.state.pageSize}
columns={this.state.columns}
Expand Down

0 comments on commit bcbb53b

Please sign in to comment.