Procházet zdrojové kódy

Update Analysis.js

delete this.state
Anderson před 7 roky
rodič
revize
5ae2e75170
1 změnil soubory, kde provedl 6 přidání a 6 odebrání
  1. 6 6
      src/pages/Dashboard/Analysis.js

+ 6 - 6
src/pages/Dashboard/Analysis.js

@@ -58,14 +58,14 @@ class Analysis extends Component {
         total: 323234,
       });
     }
-    this.state = {
-      salesType: 'all',
-      currentTabKey: '',
-      loading: true,
-      rangePickerValue: getTimeDistance('year'),
-    };
   }
 
+  state = {
+    salesType: 'all',
+    currentTabKey: '',
+    rangePickerValue: getTimeDistance('year'),
+  };
+
   componentDidMount() {
     const { dispatch } = this.props;
     this.reqRef = requestAnimationFrame(() => {