diff --git a/src/components/datatable/DataTable.js b/src/components/datatable/DataTable.js index 57125b54be..4959557266 100644 --- a/src/components/datatable/DataTable.js +++ b/src/components/datatable/DataTable.js @@ -225,7 +225,9 @@ export class DataTable extends Component { constructor(props) { super(props); - this.state = {}; + this.state = { + d_rows: props.rows + }; if (!this.props.onPage) { this.state.first = props.first; @@ -530,7 +532,6 @@ export class DataTable extends Component { createPaginator(position, totalRecords, data) { const className = classNames('p-paginator-' + position, this.props.paginatorClassName); - return (