stop fetching data on view change

This commit is contained in:
Bilal Catic
2018-09-27 15:21:43 +02:00
parent dc1311340f
commit 174517a161

View File

@@ -140,9 +140,6 @@ class ProcessContainer extends Component {
} }
onViewChange(activeView){ onViewChange(activeView){
if(activeView === 'documents'){
this.props.dispatch(fetchOrderInfo(this.props.idOrder));
}
this.setState({activeView}); this.setState({activeView});
} }
@@ -232,7 +229,7 @@ class ProcessContainer extends Component {
{ {
this.state.activeView === 'documents' && this.state.activeView === 'documents' &&
<OrderDocuments idOrder={orderInfo.id} /> <OrderDocuments orderDocumentsBundle={orderInfo.documents} />
} }
</div> </div>
} }