Fix card at index zero being not addable #101

Merged
sb10q merged 1 commits from esavkin/web2019:99-shuttler-upd into master 2023-10-11 12:18:26 +08:00
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, _) => {
dragged_items.push(itemsUnfoldedList[card_index]);
})
} else if (source.index) {
} else if (source.index >= 0) {
dragged_items.push(itemsUnfoldedList[source.index]);
}