From 391504b07d784f5ae68424e9108f80b1e580abfa Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 11 Jan 2016 16:24:12 -0800 Subject: [PATCH] Fix flattening of categories not working since they're maps --- src/flux/stores/category-store.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/flux/stores/category-store.coffee b/src/flux/stores/category-store.coffee index f3dfa80dd..c4da05f08 100644 --- a/src/flux/stores/category-store.coffee +++ b/src/flux/stores/category-store.coffee @@ -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. #