Merge pull request #2179 from mattermost/search
Get more search results only if value is set
This commit is contained in:
commit
58ae27bc01
1 changed files with 3 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue