summaryrefslogtreecommitdiffstats
path: root/webapp/actions/integration_actions.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/actions/integration_actions.jsx')
-rw-r--r--webapp/actions/integration_actions.jsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/webapp/actions/integration_actions.jsx b/webapp/actions/integration_actions.jsx
index 6afaa5789..c9bba9202 100644
--- a/webapp/actions/integration_actions.jsx
+++ b/webapp/actions/integration_actions.jsx
@@ -213,8 +213,12 @@ export function regenCommandToken(id) {
export function getSuggestedCommands(command, suggestionId, component) {
Client4.getCommandsList(TeamStore.getCurrentId()).then(
(data) => {
- var matches = [];
+ let matches = [];
data.forEach((cmd) => {
+ if (!cmd.auto_complete) {
+ return;
+ }
+
if (cmd.trigger !== 'shortcuts' || !UserAgent.isMobile()) {
if (('/' + cmd.trigger).indexOf(command) === 0) {
const s = '/' + cmd.trigger;