Fix SAC handling empty dataset
This commit is contained in:
parent
d88933eed9
commit
e38c766241
|
@ -101,7 +101,9 @@ var StackedAreaChart = React.createClass({
|
|||
var weeksList = _(this.state.rawData).pluck('week').uniq().sort().reverse().take(this.maxWeeks).value();
|
||||
if (weeksList.length < 2) {
|
||||
this.setState({
|
||||
weeks: [],
|
||||
topItems: [],
|
||||
weeklyData: {},
|
||||
maxCommitsPerWeek: 0,
|
||||
state: 'pleaseRender'
|
||||
});
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue