Eliminate duplicate week range queries
This commit is contained in:
parent
a43c5909a5
commit
5d3200b5db
|
@ -12,7 +12,9 @@ var WeekIntervalSelector = React.createClass({
|
|||
},
|
||||
|
||||
componentWillReceiveProps: function(newProps) {
|
||||
this.loadWeekRange(newProps.org);
|
||||
if (this.props.org !== newProps.org) {
|
||||
this.loadWeekRange(newProps.org);
|
||||
}
|
||||
},
|
||||
|
||||
handleChange: function(thing, e) {
|
||||
|
|
Loading…
Reference in New Issue