From a02b2b62fd4624ad5caf0cbc42fe2845e211f04b Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Mon, 11 Apr 2016 13:15:29 -0700 Subject: [PATCH] fix(thread-list): Prevent empty state from showing when loading list - EmptyState should only be displayed when the thread-list is actually empty, not while it is being loaded - Update ObservableListDataSource to have a state of loaded only when the requested range is > 0, i.e. when we are actually requesting threads --- src/flux/stores/observable-list-data-source.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flux/stores/observable-list-data-source.coffee b/src/flux/stores/observable-list-data-source.coffee index 6dc1c0c54..91ad62ae6 100644 --- a/src/flux/stores/observable-list-data-source.coffee +++ b/src/flux/stores/observable-list-data-source.coffee @@ -44,7 +44,7 @@ class ObservableListDataSource extends ListTabular.DataSource @_countEstimate loaded: -> - @_resultSet isnt null + @_resultSet isnt null and @_resultDesiredLast > 0 empty: => not @_resultSet or @_resultSet.empty()