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
I've discovered a but in the function elementAt (L:267) in the TableDirector.
The function returns the same element because the return value uses the wrong index to search the elements array. Here is the current line which returns the element:
I realised I could also fork your repo and try to fix it myself; as such, I made a MR
EDIT:
Also fixed it in CollectionDirector
malcommac
changed the title
[TableDirector] elementAt gives back the wrong element
[TableDirector/CollectionDirector] elementAt gives back the wrong element
May 23, 2019
I've discovered a but in the function
elementAt
(L:267) in theTableDirector
.The function returns the same element because the return value uses the wrong index to search the elements array. Here is the current line which returns the element:
return sections[indexPath.section].elements[indexPath.section]
I think the index in the
elements
array should beindexPath.row
.The text was updated successfully, but these errors were encountered: