summaryrefslogtreecommitdiffstats
path: root/web/react/components/suggestion/suggestion_list.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components/suggestion/suggestion_list.jsx')
-rw-r--r--web/react/components/suggestion/suggestion_list.jsx8
1 files changed, 2 insertions, 6 deletions
diff --git a/web/react/components/suggestion/suggestion_list.jsx b/web/react/components/suggestion/suggestion_list.jsx
index cd75f36c5..290e0eec6 100644
--- a/web/react/components/suggestion/suggestion_list.jsx
+++ b/web/react/components/suggestion/suggestion_list.jsx
@@ -1,8 +1,8 @@
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
-import AppDispatcher from '../../dispatcher/app_dispatcher.jsx';
import Constants from '../../utils/constants.jsx';
+import * as EventHelpers from '../../dispatcher/event_helpers.jsx';
import SuggestionStore from '../../stores/suggestion_store.jsx';
export default class SuggestionList extends React.Component {
@@ -37,11 +37,7 @@ export default class SuggestionList extends React.Component {
}
handleItemClick(term, e) {
- AppDispatcher.handleViewAction({
- type: Constants.ActionTypes.SUGGESTION_COMPLETE_WORD,
- id: this.props.suggestionId,
- term
- });
+ EventHelpers.emitCompleteWordSuggestion(this.props.suggestionId, term);
e.preventDefault();
}