diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-05-16 19:09:58 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-05-16 16:09:58 -0700 |
commit | f7a49e23cc4f8b32a6f4f8b83b297a3b271b4e65 (patch) | |
tree | 689a4f1653f079631e1b53369d6ca926f530d2d8 /webapp/components/search_results.jsx | |
parent | 0b53dd917d2664bfa7502343e91c9168a346df3c (diff) | |
download | chat-f7a49e23cc4f8b32a6f4f8b83b297a3b271b4e65.tar.gz chat-f7a49e23cc4f8b32a6f4f8b83b297a3b271b4e65.tar.bz2 chat-f7a49e23cc4f8b32a6f4f8b83b297a3b271b4e65.zip |
Fixed search results to correctly update when search term changes (#3010)
Diffstat (limited to 'webapp/components/search_results.jsx')
-rw-r--r-- | webapp/components/search_results.jsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webapp/components/search_results.jsx b/webapp/components/search_results.jsx index c5baf50ef..4daa94d8a 100644 --- a/webapp/components/search_results.jsx +++ b/webapp/components/search_results.jsx @@ -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; |