diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-11-22 09:13:14 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-11-22 09:13:14 -0500 |
commit | 3c65a20f4587da6315d47222b5d9852d7e5ad66f (patch) | |
tree | 734e690a2bbbdc290198dadce3b0deab72b98f74 /webapp/components/suggestion/suggestion_box.jsx | |
parent | 48d64f3f68bc861eda3732457b5d24d238cacc53 (diff) | |
download | chat-3c65a20f4587da6315d47222b5d9852d7e5ad66f.tar.gz chat-3c65a20f4587da6315d47222b5d9852d7e5ad66f.tar.bz2 chat-3c65a20f4587da6315d47222b5d9852d7e5ad66f.zip |
Deleted posts now update in search results and flagged posts (#4618)
Diffstat (limited to 'webapp/components/suggestion/suggestion_box.jsx')
-rw-r--r-- | webapp/components/suggestion/suggestion_box.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx index eeae5ba28..3a8cd65cf 100644 --- a/webapp/components/suggestion/suggestion_box.jsx +++ b/webapp/components/suggestion/suggestion_box.jsx @@ -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); } } |