Skip to content

Commit

Permalink
Fix menu filter with binding
Browse files Browse the repository at this point in the history
  • Loading branch information
mdartic committed May 5, 2017
1 parent d2f820f commit b86136b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions modules/der-reader/src/routes/Filters/Filters.js
Expand Up @@ -18,13 +18,11 @@ class Filters extends Component {
this.state = {
index
}
}

// componentWillReceiveProps: function(nextProps) {
// if (nextProps.options !== this.props.options) {
// this.context.router.push('/');
// }
// },
this.read = this.read.bind(this);
this.changeFilter = this.changeFilter.bind(this);
this.handleAction = this.handleAction.bind(this);
}

changeFilter(index) {
this.setState({index})
Expand Down

0 comments on commit b86136b

Please sign in to comment.