Skip to content

Commit

Permalink
Fix filter undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
inDream committed Sep 29, 2017
1 parent b5923db commit 55a7e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TableHeaderColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TableHeaderColumn extends Component {
}

// If column not displaying the same dataField, reset the filter accordingly
if (nextProps.dataField !== this.props.dataField) {
if (nextProps.filter && nextProps.dataField !== this.props.dataField) {
const emitter = nextProps.filter.emitter || {};
const currentFilter = emitter.currentFilter || {};
const filter = currentFilter[nextProps.dataField];
Expand Down

0 comments on commit 55a7e09

Please sign in to comment.