Fix autocomplete after cache delete (#4623)
This commit is contained in:
parent
c2cfbb77c9
commit
9f98b943e7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue