mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
fix(sidebar): Properly initialize sidebar accounts
This commit is contained in:
parent
3270ac48fc
commit
8197b2a96f
1 changed files with 4 additions and 1 deletions
|
@ -113,6 +113,9 @@ class FocusedPerspectiveStore extends NylasStore
|
||||||
|
|
||||||
sidebarAccounts: =>
|
sidebarAccounts: =>
|
||||||
{sidebarAccountIds} = NylasEnv.savedState
|
{sidebarAccountIds} = NylasEnv.savedState
|
||||||
sidebarAccountIds.map((id) => AccountStore.accountForId(id))
|
if sidebarAccountIds
|
||||||
|
sidebarAccountIds.map((id) => AccountStore.accountForId(id))
|
||||||
|
else
|
||||||
|
AccountStore.accounts()
|
||||||
|
|
||||||
module.exports = new FocusedPerspectiveStore()
|
module.exports = new FocusedPerspectiveStore()
|
||||||
|
|
Loading…
Reference in a new issue