mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[PR5878] Update to improve maintability [PR5938 required]... (#5940)
For this update to properly work [PR 5938](https://github.com/mattermost/platform/pull/5938) is required!
This commit is contained in:
@@ -74,17 +74,8 @@ export default class SearchBar extends React.Component {
|
||||
if (!Utils.areObjectsEqual(newState, this.state)) {
|
||||
this.setState(newState);
|
||||
}
|
||||
if (doSearch && newState && newState.searchTerm.length) {
|
||||
performSearch(
|
||||
newState.searchTerm,
|
||||
isMentionSearch,
|
||||
() => {
|
||||
this.handleSearchOnSuccess();
|
||||
},
|
||||
() => {
|
||||
this.handleSearchOnError();
|
||||
}
|
||||
);
|
||||
if (doSearch) {
|
||||
this.handleSearch(newState.searchTerm, isMentionSearch);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user