diff options
Diffstat (limited to 'webapp/actions/global_actions.jsx')
-rw-r--r-- | webapp/actions/global_actions.jsx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/webapp/actions/global_actions.jsx b/webapp/actions/global_actions.jsx index 9dd3eff35..c6b796983 100644 --- a/webapp/actions/global_actions.jsx +++ b/webapp/actions/global_actions.jsx @@ -190,15 +190,11 @@ export function emitPostFocusEvent(postId, onSuccess) { } export function emitCloseRightHandSide() { - AppDispatcher.handleServerAction({ - type: ActionTypes.RECEIVED_SEARCH, - results: null - }); + SearchStore.storeSearchResults(null, false, false); + SearchStore.emitSearchChange(); - AppDispatcher.handleServerAction({ - type: ActionTypes.RECEIVED_POST_SELECTED, - postId: null - }); + PostStore.storeSelectedPostId(null); + PostStore.emitSelectedPostChange(false, false); } export function emitPostFocusRightHandSideFromSearch(post, isMentionSearch) { |