From c043adf031534e18915eb3710cd486d8218ba3de Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Thu, 2 Aug 2018 12:49:49 +0100 Subject: [PATCH] Do not load if not needed --- embark-ui/src/containers/BlocksContainer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/embark-ui/src/containers/BlocksContainer.js b/embark-ui/src/containers/BlocksContainer.js index 02d341f66..3dbc36d11 100644 --- a/embark-ui/src/containers/BlocksContainer.js +++ b/embark-ui/src/containers/BlocksContainer.js @@ -15,7 +15,9 @@ class BlocksContainer extends Component { } componentDidMount() { - this.props.fetchBlocks(); + if (!this.props.blocks.data) { + this.props.fetchBlocks(); + } } loadMore() {