Between transitions keep only sorting
This commit is contained in:
parent
33164e5773
commit
7d61d36fc3
|
@ -26,7 +26,6 @@ var BarChart = React.createClass({
|
||||||
componentWillReceiveProps: function(newProps) {
|
componentWillReceiveProps: function(newProps) {
|
||||||
this.setState({
|
this.setState({
|
||||||
item: newProps.items[0],
|
item: newProps.items[0],
|
||||||
sort: 'commits',
|
|
||||||
state: 'newProps'
|
state: 'newProps'
|
||||||
}, this.fetchData);
|
}, this.fetchData);
|
||||||
},
|
},
|
||||||
|
|
|
@ -23,7 +23,6 @@ var StackedAreaChart = React.createClass({
|
||||||
componentWillReceiveProps: function(newProps) {
|
componentWillReceiveProps: function(newProps) {
|
||||||
this.setState({
|
this.setState({
|
||||||
item: newProps.items[0],
|
item: newProps.items[0],
|
||||||
sort: 'commits',
|
|
||||||
state: 'newProps'
|
state: 'newProps'
|
||||||
}, this.fetchData);
|
}, this.fetchData);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue