Fix card at index 0 being not addable

Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
Egor Savkin 2023-10-11 12:15:12 +08:00
parent fe26aa890d
commit 5d298b3325
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -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]);
} }