Skip to content

Commit

Permalink
Fix: remove unused checks
Browse files Browse the repository at this point in the history
  • Loading branch information
lexich committed Jan 30, 2016
1 parent fddad8e commit e368b8b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ export default class Select2 extends Component {
this.el.on(event[0], this.props[event[1]]);
});
const { defaultValue, value } = this.props;
if (!defaultValue && this.el.val() !== value) {
this.setValue(value);
}
!defaultValue && this.setValue(value);
}

componentWillReceiveProps(nextProps) {
Expand Down

0 comments on commit e368b8b

Please sign in to comment.