Deleted posts now update in search results and flagged posts (#4618)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
48d64f3f68
Коммит
3c65a20f45
@@ -39,7 +39,8 @@ export default class SuggestionBox extends React.Component {
|
||||
componentWillReceiveProps(nextProps) {
|
||||
// Clear any suggestions when the SuggestionBox is cleared
|
||||
if (nextProps.value === '' && this.props.value !== nextProps.value) {
|
||||
GlobalActions.emitClearSuggestions(this.suggestionId);
|
||||
// TODO - Find a better way to not "dispatch during dispatch"
|
||||
setTimeout(() => GlobalActions.emitClearSuggestions(this.suggestionId), 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user