From 8230b49014481154af1c6c9c41944010f0fbec50 Mon Sep 17 00:00:00 2001
From: nickago <ngonella@calpoly.edu>
Date: Fri, 21 Aug 2015 08:41:36 -0700
Subject: remove search term after the RHS is closed

---
 web/react/components/search_results.jsx | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'web/react/components/search_results.jsx')

diff --git a/web/react/components/search_results.jsx b/web/react/components/search_results.jsx
index 643ad112b..b1efd7685 100644
--- a/web/react/components/search_results.jsx
+++ b/web/react/components/search_results.jsx
@@ -23,6 +23,13 @@ var RhsHeaderSearch = React.createClass({
             results: null
         });
 
+        AppDispatcher.handleServerAction({
+            type: ActionTypes.RECIEVED_SEARCH_TERM,
+            term: null,
+            do_search: false,
+            is_mention_search: false
+        });
+
         AppDispatcher.handleServerAction({
             type: ActionTypes.RECIEVED_POST_SELECTED,
             results: null
-- 
cgit v1.2.3-1-g7c22

