Eliminate duplicate week range queries
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user