Fix autocomplete after cache delete (#4623)

This commit is contained in:
Shota Gvinepadze 2020-07-30 22:05:14 +04:00 committed by GitHub
parent c2cfbb77c9
commit 9f98b943e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}