summaryrefslogtreecommitdiffstats
path: root/webapp/actions
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-01-03 12:38:51 -0500
committerCorey Hulen <corey@hulen.com>2017-01-03 12:38:51 -0500
commitfba49d1b809077bc4b8e4d8b303e38295151758a (patch)
tree1d8e19a690275b4ff880c3ffeda94503a5eb7a4b /webapp/actions
parent2308499fa46a31b455663c164e218a5e3bae6042 (diff)
downloadchat-fba49d1b809077bc4b8e4d8b303e38295151758a.tar.gz
chat-fba49d1b809077bc4b8e4d8b303e38295151758a.tar.bz2
chat-fba49d1b809077bc4b8e4d8b303e38295151758a.zip
Fix console error when logging in with non-english language (#4941)
Diffstat (limited to 'webapp/actions')
-rw-r--r--webapp/actions/global_actions.jsx12
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) {