diff --git a/src/routes/Dashboard/Analysis.js b/src/routes/Dashboard/Analysis.js index b720f5aa9574507d00146cb92c00cb04f9630f7e..6083b490a1e449e76a74ecb7dc494ab28288ed07 100644 --- a/src/routes/Dashboard/Analysis.js +++ b/src/routes/Dashboard/Analysis.js @@ -60,6 +60,10 @@ export default class Analysis extends Component { this.setState({ rangePickerValue, }); + + this.props.dispatch({ + type: 'chart/fetchSalesData', + }); } selectDate = (type) => { @@ -84,7 +88,7 @@ export default class Analysis extends Component { salesTypeData, salesTypeDataOnline, salesTypeDataOffline, - } = chart; + } = chart; const salesPieData = salesType === 'all' ? salesTypeData