From eec913a3b4660b12d355db622ac26108bf39ad75 Mon Sep 17 00:00:00 2001 From: bultas Date: Wed, 13 May 2015 11:41:24 +0200 Subject: [PATCH] change redraw in componentWillReceiveProps --- lib/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {