[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!
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
430e93dfc1
Коммит
08822def53
@@ -74,17 +74,8 @@ export default class SearchBar extends React.Component {
|
|||||||
if (!Utils.areObjectsEqual(newState, this.state)) {
|
if (!Utils.areObjectsEqual(newState, this.state)) {
|
||||||
this.setState(newState);
|
this.setState(newState);
|
||||||
}
|
}
|
||||||
if (doSearch && newState && newState.searchTerm.length) {
|
if (doSearch) {
|
||||||
performSearch(
|
this.handleSearch(newState.searchTerm, isMentionSearch);
|
||||||
newState.searchTerm,
|
|
||||||
isMentionSearch,
|
|
||||||
() => {
|
|
||||||
this.handleSearchOnSuccess();
|
|
||||||
},
|
|
||||||
() => {
|
|
||||||
this.handleSearchOnError();
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user