Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Commit cdebc28

Browse files
committed
Merge pull request #23 from bultas/master
change redraw in componentWillReceiveProps
2 parents f84c4f0 + eec913a commit cdebc28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = {
3636

3737
classData.componentWillReceiveProps = function(nextProps) {
3838
var chart = this.state.chart;
39-
if (this.props.redraw) {
39+
if (nextProps.redraw) {
4040
chart.destroy();
4141
this.initializeChart(nextProps);
4242
} else {

0 commit comments

Comments
 (0)