From 174517a161f404ab057b90c69d3bf048bc79dc16 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Thu, 27 Sep 2018 15:21:43 +0200 Subject: [PATCH] stop fetching data on view change --- frontend/src/containers/orders/ProcessContainer.jsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/src/containers/orders/ProcessContainer.jsx b/frontend/src/containers/orders/ProcessContainer.jsx index 4c04de0..7ae0345 100644 --- a/frontend/src/containers/orders/ProcessContainer.jsx +++ b/frontend/src/containers/orders/ProcessContainer.jsx @@ -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' && - + } }