forked from M-Labs/web2019
Fix card at index 0 being not addable
Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
parent
fe26aa890d
commit
5d298b3325
File diff suppressed because one or more lines are too long
|
@ -1954,7 +1954,7 @@ class Shop extends React.PureComponent {
|
|||
source.indexes.forEach((card_index, _) => {
|
||||
dragged_items.push(itemsUnfoldedList[card_index]);
|
||||
})
|
||||
} else if (source.index) {
|
||||
} else if (source.index >= 0) {
|
||||
dragged_items.push(itemsUnfoldedList[source.index]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue