From 8c38b1bce86d3cad61b850b968385b9cb1f72631 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 25 Jan 2016 13:47:41 -0800 Subject: [PATCH] Fix for search bar issue with threads not appearing --- .../search-bar/lib/search-suggestion-store.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal_packages/search-bar/lib/search-suggestion-store.coffee b/internal_packages/search-bar/lib/search-suggestion-store.coffee index f4ca088fe..3a782f4ad 100644 --- a/internal_packages/search-bar/lib/search-suggestion-store.coffee +++ b/internal_packages/search-bar/lib/search-suggestion-store.coffee @@ -96,9 +96,10 @@ class SearchSuggestionStore extends NylasStore @_compileResults() # We're behind and need to re-run the search for the latest results else if @_searchSuggestionsVersion > @_fetchingThreadResultsVersion + @_fetchingThreadResultsVersion = null @_fetchThreadResults() - - @_fetchingThreadResultsVersion = null + else + @_fetchingThreadResultsVersion = null _compileResults: => @_suggestions = []