mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(thread-list): Remove dup accountIds to avoid extra work
This commit is contained in:
parent
0abc5d5def
commit
bf0f3828dc
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ class ThreadList extends React.Component
|
|||
dataSource = ThreadListStore.dataSource()
|
||||
if itemThreadId in dataSource.selection.ids()
|
||||
dragThreadIds = dataSource.selection.ids()
|
||||
dragAccountIds = _.pluck(dataSource.selection.items(), 'accountId')
|
||||
dragAccountIds = _.uniq(_.pluck(dataSource.selection.items(), 'accountId'))
|
||||
else
|
||||
dragThreadIds = [itemThreadId]
|
||||
dragAccountIds = [dataSource.getById(itemThreadId).accountId]
|
||||
|
|
Loading…
Reference in a new issue