diff --git a/src/components/Charts/TagCloud/index.js b/src/components/Charts/TagCloud/index.js index 78271484cce4b1e5a364a95adce3856c5ac8fd94..d3f0d70cdc250ccc9600a8dc5aa00b80adb5dc3b 100644 --- a/src/components/Charts/TagCloud/index.js +++ b/src/components/Charts/TagCloud/index.js @@ -27,7 +27,7 @@ class TagCloud extends PureComponent { componentWillUnmount() { window.removeEventListener('resize', this.resize); - this.resize.cancel(); + this.renderChart.cancel(); } resize = () => { @@ -77,7 +77,7 @@ class TagCloud extends PureComponent { @Bind() @Debounce(500) - renderChart = (newData) => { + renderChart(newData) { const data = newData || this.props.data; if (!data || data.length < 1) { return;