From 838a52221fdf11e9116332ee4d6560e0850858a4 Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Thu, 30 Jul 2020 21:51:24 +0200 Subject: [PATCH] Fix autocomplete after cache delete (#4623) (#4625) (cherry picked from commit 9f98b943e7796c986e0bd55432ddc5cdd3587046) Co-authored-by: Shota Gvinepadze --- .../autocomplete/slash_suggestion/slash_suggestion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/autocomplete/slash_suggestion/slash_suggestion.js b/app/components/autocomplete/slash_suggestion/slash_suggestion.js index 48fcdf02f..91a23780f 100644 --- a/app/components/autocomplete/slash_suggestion/slash_suggestion.js +++ b/app/components/autocomplete/slash_suggestion/slash_suggestion.js @@ -51,7 +51,7 @@ export default class SlashSuggestion extends PureComponent { }; componentWillReceiveProps(nextProps) { - if ((nextProps.value === this.props.value && nextProps.suggestions === this.props.suggestions) || + if ((nextProps.value === this.props.value && nextProps.suggestions === this.props.suggestions && nextProps.commands === this.props.commands) || nextProps.isSearch || nextProps.value.startsWith('//') || !nextProps.channelId) { return; }