summaryrefslogtreecommitdiffstats
path: root/webapp/components/suggestion/command_provider.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/suggestion/command_provider.jsx')
-rw-r--r--webapp/components/suggestion/command_provider.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/components/suggestion/command_provider.jsx b/webapp/components/suggestion/command_provider.jsx
index 30b989d70..4f74ebd55 100644
--- a/webapp/components/suggestion/command_provider.jsx
+++ b/webapp/components/suggestion/command_provider.jsx
@@ -3,10 +3,10 @@
import React from 'react';
-import * as AsyncClient from 'utils/async_client.jsx';
-
import Suggestion from './suggestion.jsx';
+import {getSuggestedCommands} from 'actions/integration_actions.jsx';
+
class CommandSuggestion extends Suggestion {
render() {
const {item, isSelection} = this.props;
@@ -35,7 +35,7 @@ class CommandSuggestion extends Suggestion {
export default class CommandProvider {
handlePretextChanged(suggestionId, pretext) {
if (pretext.startsWith('/')) {
- AsyncClient.getSuggestedCommands(pretext.toLowerCase(), suggestionId, CommandSuggestion, pretext.toLowerCase());
+ getSuggestedCommands(pretext.toLowerCase(), suggestionId, CommandSuggestion, pretext.toLowerCase());
}
}
}