summaryrefslogtreecommitdiffstats
path: root/webapp/components/rhs_header_post.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/rhs_header_post.jsx')
-rw-r--r--webapp/components/rhs_header_post.jsx12
1 files changed, 2 insertions, 10 deletions
diff --git a/webapp/components/rhs_header_post.jsx b/webapp/components/rhs_header_post.jsx
index 189ee0acb..493040800 100644
--- a/webapp/components/rhs_header_post.jsx
+++ b/webapp/components/rhs_header_post.jsx
@@ -3,6 +3,7 @@
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
import Constants from 'utils/constants.jsx';
+import * as GlobalActions from 'action_creators/global_actions.jsx';
import {FormattedMessage} from 'react-intl';
@@ -21,16 +22,7 @@ export default class RhsHeaderPost extends React.Component {
}
handleClose(e) {
e.preventDefault();
-
- AppDispatcher.handleServerAction({
- type: ActionTypes.RECEIVED_SEARCH,
- results: null
- });
-
- AppDispatcher.handleServerAction({
- type: ActionTypes.RECEIVED_POST_SELECTED,
- postId: null
- });
+ GlobalActions.emitCloseRightHandSide();
}
handleBack(e) {
e.preventDefault();