summaryrefslogtreecommitdiffstats
path: root/web/react/components/search_results_item.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2016-02-08 13:36:13 -0500
committerhmhealey <harrisonmhealey@gmail.com>2016-02-08 15:47:18 -0500
commitbe716c3b668c4b5de385befc0e6ed5ca2116beb6 (patch)
tree710ac35e330cfbbd510f730c586aa71d7fd8de2d /web/react/components/search_results_item.jsx
parentfa069e4e1f4fc730fd29ab9699240480d84c84d3 (diff)
downloadchat-be716c3b668c4b5de385befc0e6ed5ca2116beb6.tar.gz
chat-be716c3b668c4b5de385befc0e6ed5ca2116beb6.tar.bz2
chat-be716c3b668c4b5de385befc0e6ed5ca2116beb6.zip
Changed SearchResults to update when the channel store receives data
Diffstat (limited to 'web/react/components/search_results_item.jsx')
-rw-r--r--web/react/components/search_results_item.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/search_results_item.jsx b/web/react/components/search_results_item.jsx
index 544ba920a..d3533037f 100644
--- a/web/react/components/search_results_item.jsx
+++ b/web/react/components/search_results_item.jsx
@@ -1,7 +1,6 @@
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
-import ChannelStore from '../stores/channel_store.jsx';
import UserStore from '../stores/user_store.jsx';
import UserProfile from './user_profile.jsx';
import * as EventHelpers from '../dispatcher/event_helpers.jsx';
@@ -37,8 +36,8 @@ export default class SearchResultsItem extends React.Component {
}
render() {
- var channelName = '';
- var channel = ChannelStore.get(this.props.post.channel_id);
+ var channelName = null;
+ const channel = this.props.channel;
var timestamp = UserStore.getCurrentUser().update_at;
if (channel) {
@@ -136,6 +135,7 @@ export default class SearchResultsItem extends React.Component {
SearchResultsItem.propTypes = {
post: React.PropTypes.object,
+ channel: React.PropTypes.object,
isMentionSearch: React.PropTypes.bool,
term: React.PropTypes.string
};