Fix card at index zero being not addable #101
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, _) => {
|
source.indexes.forEach((card_index, _) => {
|
||||||
dragged_items.push(itemsUnfoldedList[card_index]);
|
dragged_items.push(itemsUnfoldedList[card_index]);
|
||||||
})
|
})
|
||||||
} else if (source.index) {
|
} else if (source.index >= 0) {
|
||||||
dragged_items.push(itemsUnfoldedList[source.index]);
|
dragged_items.push(itemsUnfoldedList[source.index]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue