From 04437e9d9631d326c8f9b7745fad46de2b85eb8c 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 02d341f6..3dbc36d1 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() {