From 97442b9bcba7713539006b1d1e6f36eed15c64a7 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Wed, 9 Sep 2015 15:20:34 -0700 Subject: [PATCH] tweak(category-picker): Be slightly more robust against missing inbox --- internal_packages/category-picker/lib/category-picker.cjsx | 1 + 1 file changed, 1 insertion(+) diff --git a/internal_packages/category-picker/lib/category-picker.cjsx b/internal_packages/category-picker/lib/category-picker.cjsx index 5778fef76..81fccfd20 100644 --- a/internal_packages/category-picker/lib/category-picker.cjsx +++ b/internal_packages/category-picker/lib/category-picker.cjsx @@ -265,6 +265,7 @@ class CategoryPicker extends React.Component _allInInbox: (usageCount, numThreads) -> inbox = CategoryStore.getStandardCategory("inbox") + return false unless inbox return usageCount[inbox.id] is numThreads _itemForCategory: ({usageCount, numThreads}, category) ->