mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-25 10:07:25 +08:00
Fixed search results to correctly update when search term changes (#3010)
This commit is contained in:
committed by
Corey Hulen
parent
0b53dd917d
commit
f7a49e23cc
@@ -30,7 +30,8 @@ function getStateFromStores() {
|
||||
|
||||
return {
|
||||
results,
|
||||
channels
|
||||
channels,
|
||||
searchTerm: SearchStore.getSearchTerm()
|
||||
};
|
||||
}
|
||||
|
||||
@@ -119,7 +120,7 @@ export default class SearchResults extends React.Component {
|
||||
searchForm = <SearchBox/>;
|
||||
}
|
||||
var noResults = (!results || !results.order || !results.order.length);
|
||||
var searchTerm = SearchStore.getSearchTerm();
|
||||
const searchTerm = this.state.searchTerm;
|
||||
const profiles = this.state.profiles || {};
|
||||
|
||||
var ctls = null;
|
||||
|
||||
Reference in New Issue
Block a user