mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
fix(thread-list): AccountId resolution for items outside loaded range
This commit is contained in:
parent
ec553b0c3d
commit
c8d8bd0aee
1 changed files with 2 additions and 3 deletions
|
@ -107,11 +107,10 @@ class ThreadList extends React.Component
|
|||
dataSource = ThreadListStore.dataSource()
|
||||
if itemThreadId in dataSource.selection.ids()
|
||||
dragThreadIds = dataSource.selection.ids()
|
||||
dragAccountIds = _.pluck(dataSource.selection.items(), 'accountId')
|
||||
else
|
||||
dragThreadIds = [itemThreadId]
|
||||
|
||||
dragAccountIds = dragThreadIds.map (threadId) -> dataSource.getById(threadId).accountId
|
||||
dragAccountIds = _.uniq(dragAccountIds)
|
||||
dragAccountIds = [dataSource.getById(itemThreadId).accountId]
|
||||
|
||||
dragData = {
|
||||
accountIds: dragAccountIds,
|
||||
|
|
Loading…
Reference in a new issue