fix(thread-list): Remove dup accountIds to avoid extra work

This commit is contained in:
Ben Gotow 2016-01-30 15:00:20 -08:00
parent 0abc5d5def
commit bf0f3828dc

View file

@ -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]