Merge pull request #2179 from mattermost/search

Get more search results only if value is set
This commit is contained in:
Christopher Speller 2018-09-27 12:10:56 -07:00 committed by GitHub
commit 58ae27bc01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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() {