diff --git a/src/pages/Dashboard/Analysis.js b/src/pages/Dashboard/Analysis.js index a6fabc101e7d815b40d17578898319709019f579..7bca5de3c30829c6b6ccd1c559f422a987824174 100644 --- a/src/pages/Dashboard/Analysis.js +++ b/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(() => {