Get more search results only if value is set

This commit is contained in:
Elias Nahum 2018-09-27 09:38:10 -03:00
parent 2a75ee022c
commit 637df1df63
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -534,7 +534,9 @@ export default class Search extends PureComponent {
});
onEndReached = debounce(() => {
this.props.actions.getMorePostsForSearch();
if (this.state.value) {
this.props.actions.getMorePostsForSearch();
}
}, 100);
render() {