stop fetching data on view change
This commit is contained in:
@@ -140,9 +140,6 @@ class ProcessContainer extends Component {
|
||||
}
|
||||
|
||||
onViewChange(activeView){
|
||||
if(activeView === 'documents'){
|
||||
this.props.dispatch(fetchOrderInfo(this.props.idOrder));
|
||||
}
|
||||
this.setState({activeView});
|
||||
}
|
||||
|
||||
@@ -232,7 +229,7 @@ class ProcessContainer extends Component {
|
||||
|
||||
{
|
||||
this.state.activeView === 'documents' &&
|
||||
<OrderDocuments idOrder={orderInfo.id} />
|
||||
<OrderDocuments orderDocumentsBundle={orderInfo.documents} />
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user