Do not load if not needed

This commit is contained in:
Anthony Laibe 2018-08-02 12:49:49 +01:00 committed by Iuri Matias
parent f5602dad64
commit 04437e9d96

View File

@ -15,7 +15,9 @@ class BlocksContainer extends Component {
}
componentDidMount() {
this.props.fetchBlocks();
if (!this.props.blocks.data) {
this.props.fetchBlocks();
}
}
loadMore() {