From b3821d53b04fc4ef1fcce4ce97c4ec1066ff476d Mon Sep 17 00:00:00 2001 From: jim Date: Sun, 8 Apr 2018 10:19:58 +0800 Subject: [PATCH] fix tagcloud bug --- src/components/Charts/TagCloud/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Charts/TagCloud/index.js b/src/components/Charts/TagCloud/index.js index 50b947d3..08418ea1 100644 --- a/src/components/Charts/TagCloud/index.js +++ b/src/components/Charts/TagCloud/index.js @@ -77,7 +77,7 @@ class TagCloud extends Component { @Bind() @Debounce(500) - renderChart = nextProps => { + renderChart(nextProps) { // const colors = ['#1890FF', '#41D9C7', '#2FC25B', '#FACC14', '#9AE65C']; const { data, height } = nextProps || this.props; @@ -129,7 +129,7 @@ class TagCloud extends Component { } else { onload(); } - }; + } render() { const { className, height } = this.props; -- GitLab