From 1b0e933977d9370dac5b0c178faf2a3c2b4027b6 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Tue, 10 May 2016 10:53:59 -0700 Subject: [PATCH] fix(accounts): Any account update triggered focus #2165 --- 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 72ca7eaab..55e25bc79 100644 --- a/src/flux/stores/account-store.coffee +++ b/src/flux/stores/account-store.coffee @@ -32,7 +32,7 @@ class AccountStore extends NylasStore oldAccountIds = _.pluck(@_accounts, 'id') @_loadAccounts() newAccountIds = _.pluck(@_accounts, 'id') - newAccountIds = _.without(newAccountIds, oldAccountIds) + newAccountIds = _.difference(newAccountIds, oldAccountIds) if newAccountIds.length > 0 Actions.focusDefaultMailboxPerspectiveForAccounts([newAccountIds[0]])