From 139f25e12f61e5cc451a5928ea86ace2d314b123 Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Tue, 16 Feb 2016 17:26:45 -0800 Subject: [PATCH] fix(account-store): Update focused perspective after triggering - This prevents account store changes from propagating in the incorrect order --- src/flux/stores/account-store.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flux/stores/account-store.coffee b/src/flux/stores/account-store.coffee index 1f4718a35..fa64968a6 100644 --- a/src/flux/stores/account-store.coffee +++ b/src/flux/stores/account-store.coffee @@ -75,8 +75,8 @@ class AccountStore extends NylasStore ipc = require('electron').ipcRenderer ipc.send('command', 'application:reset-config-and-relaunch') else - Actions.focusDefaultMailboxPerspectiveForAccounts(@_accounts) @trigger() + Actions.focusDefaultMailboxPerspectiveForAccounts(@_accounts) _onReorderAccount: (id, newIdx) => existingIdx = _.findIndex @_accounts, (a) -> a.id is id