fix(sidebar): Properly initialize sidebar accounts

This commit is contained in:
Juan Tejada 2016-06-01 17:25:59 -07:00
parent 3270ac48fc
commit 8197b2a96f

View file

@ -113,6 +113,9 @@ class FocusedPerspectiveStore extends NylasStore
sidebarAccounts: =>
{sidebarAccountIds} = NylasEnv.savedState
sidebarAccountIds.map((id) => AccountStore.accountForId(id))
if sidebarAccountIds
sidebarAccountIds.map((id) => AccountStore.accountForId(id))
else
AccountStore.accounts()
module.exports = new FocusedPerspectiveStore()