Parcourir la source

fix tagcloud bug

jim il y a 7 ans
Parent
commit
314c933b9c
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/components/Charts/TagCloud/index.js

+ 2 - 2
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;