From 9f98b943e7796c986e0bd55432ddc5cdd3587046 Mon Sep 17 00:00:00 2001 From: Shota Gvinepadze Date: Thu, 30 Jul 2020 22:05:14 +0400 Subject: [PATCH] Fix autocomplete after cache delete (#4623) --- .../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; }