mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 00:06:06 +08:00
Fix flattening of categories not working since they're maps
This commit is contained in:
parent
dbc3b85659
commit
391504b07d
|
@ -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.
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue