From ccf9778520e2c0331f1836fb5232680f985a6889 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 16 Aug 2016 14:52:56 -0400 Subject: Clear search term before displaying flagged posts (#3802) --- webapp/actions/post_actions.jsx | 12 ++++++------ 1 file 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 @@ -134,18 +134,18 @@ export function unflagPost(postId, success) { 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'); -- cgit v1.2.3-1-g7c22