1
0
Fork 0

Eliminate duplicate week range queries

This commit is contained in:
Gregory Eremin 2015-03-22 20:28:01 +07:00
parent a43c5909a5
commit 5d3200b5db
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,9 @@ var WeekIntervalSelector = React.createClass({
}, },
componentWillReceiveProps: function(newProps) { componentWillReceiveProps: function(newProps) {
if (this.props.org !== newProps.org) {
this.loadWeekRange(newProps.org); this.loadWeekRange(newProps.org);
}
}, },
handleChange: function(thing, e) { handleChange: function(thing, e) {