You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you have a collection with deleted items the removeChild function looks up the index but can return 'undefined'. In this case the call to collection.splice will remove the first item in the list which is not the desired behaviour.
I fixed it for me by checking on index before removing.
// Remove the item from the collection
if (index) {
collection.splice(index, 1);
}
The text was updated successfully, but these errors were encountered:
When you have a collection with deleted items the removeChild function looks up the index but can return 'undefined'. In this case the call to collection.splice will remove the first item in the list which is not the desired behaviour.
I fixed it for me by checking on index before removing.
// Remove the item from the collection
if (index) {
collection.splice(index, 1);
}
The text was updated successfully, but these errors were encountered: