From dded4cbafcbc13f9f26633f67f14369b5e4dda28 Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Thu, 19 Mar 2015 16:29:20 +0700 Subject: [PATCH] BC uses same state names as SAC --- app/jsx/charts/bc/bar_chart.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/jsx/charts/bc/bar_chart.jsx b/app/jsx/charts/bc/bar_chart.jsx index c03e58f..f3e72ff 100644 --- a/app/jsx/charts/bc/bar_chart.jsx +++ b/app/jsx/charts/bc/bar_chart.jsx @@ -62,7 +62,7 @@ var BarChart = React.createClass({ item: (_.isEqual(newProps.items, this.props.items) ? this.state.item : newProps.items[0]), - state: 'newProps' + state: 'loadingData' }, this.fetchData); }, @@ -70,7 +70,7 @@ var BarChart = React.createClass({ if (!newState.canvasWidth) { return false; } - if (newState.state !== 'newPoints') { + if (newState.state !== 'pleaseRender') { return false; } return true; @@ -80,12 +80,12 @@ var BarChart = React.createClass({ if (thing === 'item' && this.props.items[i] !== this.state.item) { this.setState({ item: this.props.items[i], - state: 'newProps' + state: 'loadingData' }, this.fetchData); } else if (thing === 'sort' && this.sorts[i] !== this.state.sort) { this.setState({ sort: this.sorts[i], - state: 'newProps' + state: 'loadingData' }, this.handleNewData); } }, @@ -109,7 +109,7 @@ var BarChart = React.createClass({ points: points, min: _.min(points, this.state.sort)[this.state.sort], max: _.max(points, this.state.sort)[this.state.sort], - state: 'newPoints' + state: 'pleaseRender' }); },