diff --git a/lib/core.js b/lib/core.js index c3b5620..0f41a30 100644 --- a/lib/core.js +++ b/lib/core.js @@ -36,7 +36,7 @@ module.exports = { classData.componentWillReceiveProps = function(nextProps) { var chart = this.state.chart; - if (this.props.redraw) { + if (nextProps.redraw) { chart.destroy(); this.initializeChart(nextProps); } else {