Fix flattening of categories not working since they're maps

This commit is contained in:
Ben Gotow 2016-01-11 16:24:12 -08:00
parent dbc3b85659
commit 391504b07d

View file

@ -23,7 +23,10 @@ class CategoryStore extends NylasStore
if account
@_categoryCache[account.id] ? {}
else
_.flatten(_.values(@_categoryCache))
all = []
for accountId, categories of @_categoryCache
all = all.concat(_.values(categories))
all
# Public: Returns all of the standard categories for the current account.
#