Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Commit

Permalink
Update table.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Froncz committed Jan 7, 2016
1 parent 9adf60b commit 8727e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reactable/table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ export class Table extends React.Component {
componentWillMount() {
this.initialize(this.props);
this.sortByCurrentSort();
this.filterBy(this.props.filterBy);
this.filterBy(this.props.filterBy != null ? this.props.filterBy : this.state.filter);
}

componentWillReceiveProps(nextProps) {
this.initialize(nextProps);
this.updateCurrentSort(nextProps.sortBy);
this.sortByCurrentSort();
this.filterBy(nextProps.filterBy);
this.filterBy(nextProps.filterBy != null ? nextProps.filterBy : this.state.filter);
}

applyFilter(filter, children) {
Expand Down

0 comments on commit 8727e97

Please sign in to comment.