From 42f28886cca4ddf0f2814ce27d6dfbce95aa1625 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 6 Dec 2016 10:50:56 -0500 Subject: [PATCH] Autocomplete is now case insensitive (#4709) --- webapp/stores/suggestion_store.jsx | 2 ++ webapp/utils/async_client.jsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/stores/suggestion_store.jsx b/webapp/stores/suggestion_store.jsx index 39bea0b0c0..83c0c2a179 100644 --- a/webapp/stores/suggestion_store.jsx +++ b/webapp/stores/suggestion_store.jsx @@ -232,6 +232,8 @@ class SuggestionStore extends EventEmitter { this.clearSuggestions(id); } + other.pretext = other.pretext.toLowerCase(); + this.setPretext(id, other.pretext); this.emitPretextChanged(id, other.pretext); diff --git a/webapp/utils/async_client.jsx b/webapp/utils/async_client.jsx index 481f85000e..9bcb4e07f1 100644 --- a/webapp/utils/async_client.jsx +++ b/webapp/utils/async_client.jsx @@ -989,7 +989,7 @@ export function getSuggestedCommands(command, suggestionId, component) { } }, (err) => { - dispatchError(err, 'getCommandSuggestions'); + dispatchError(err, 'getSuggestedCommands'); } ); }