summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-08-16 14:52:56 -0400
committerChristopher Speller <crspeller@gmail.com>2016-08-16 14:52:56 -0400
commitccf9778520e2c0331f1836fb5232680f985a6889 (patch)
treee09aca31ff4107fad65d709f798d7ccbdd31ef35 /webapp
parentad6363079d607e27b93073c369cbbfbb3978dc1f (diff)
downloadchat-ccf9778520e2c0331f1836fb5232680f985a6889.tar.gz
chat-ccf9778520e2c0331f1836fb5232680f985a6889.tar.bz2
chat-ccf9778520e2c0331f1836fb5232680f985a6889.zip
Clear search term before displaying flagged posts (#3802)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/actions/post_actions.jsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/webapp/actions/post_actions.jsx b/webapp/actions/post_actions.jsx
index fd413dfe1..9e0f90377 100644
--- a/webapp/actions/post_actions.jsx
+++ b/webapp/actions/post_actions.jsx
@@ -135,17 +135,17 @@ export function getFlaggedPosts() {
Client.getFlaggedPosts(0, Constants.POST_CHUNK_SIZE,
(data) => {
AppDispatcher.handleServerAction({
- type: ActionTypes.RECEIVED_SEARCH,
- results: data,
- is_flagged_posts: true
- });
-
- AppDispatcher.handleServerAction({
type: ActionTypes.RECEIVED_SEARCH_TERM,
term: null,
do_search: false,
is_mention_search: false
});
+
+ AppDispatcher.handleServerAction({
+ type: ActionTypes.RECEIVED_SEARCH,
+ results: data,
+ is_flagged_posts: true
+ });
},
(err) => {
AsyncClient.dispatchError(err, 'getFlaggedPosts');