diff options
Diffstat (limited to 'webapp/components/suggestion/switch_channel_provider.jsx')
-rw-r--r-- | webapp/components/suggestion/switch_channel_provider.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/suggestion/switch_channel_provider.jsx b/webapp/components/suggestion/switch_channel_provider.jsx index 3d295951c..67cda61ea 100644 --- a/webapp/components/suggestion/switch_channel_provider.jsx +++ b/webapp/components/suggestion/switch_channel_provider.jsx @@ -67,7 +67,9 @@ export default class SwitchChannelProvider extends Provider { autocompleteUsers( channelPrefix, - (users) => { + (data) => { + const users = Object.assign([], data.users); + if (this.shouldCancelDispatch(channelPrefix)) { return; } |