mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
tweak(category-picker): Be slightly more robust against missing inbox
This commit is contained in:
parent
1dd0237717
commit
97442b9bcb
1 changed files with 1 additions and 0 deletions
|
@ -265,6 +265,7 @@ class CategoryPicker extends React.Component
|
||||||
|
|
||||||
_allInInbox: (usageCount, numThreads) ->
|
_allInInbox: (usageCount, numThreads) ->
|
||||||
inbox = CategoryStore.getStandardCategory("inbox")
|
inbox = CategoryStore.getStandardCategory("inbox")
|
||||||
|
return false unless inbox
|
||||||
return usageCount[inbox.id] is numThreads
|
return usageCount[inbox.id] is numThreads
|
||||||
|
|
||||||
_itemForCategory: ({usageCount, numThreads}, category) ->
|
_itemForCategory: ({usageCount, numThreads}, category) ->
|
||||||
|
|
Loading…
Reference in a new issue