tweak(category-picker): Be slightly more robust against missing inbox

This commit is contained in:
Ben Gotow 2015-09-09 15:20:34 -07:00
parent 1dd0237717
commit 97442b9bcb

View file

@ -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) ->