Skip to content

Commit

Permalink
Merge pull request #393 from SquareTable/329-profilepages-multiple-ch…
Browse files Browse the repository at this point in the history
…ildren-with-same-key

fix: multiple children with same key bug
  • Loading branch information
Sebastian-Webster authored Feb 15, 2024
2 parents cea9861 + d9810fd commit 5ca5575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screens/ProfilePages.js
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ const ProfilePages = ({ route, navigation }) => {
<ProfileGridPosts>
{selectedPostFormat == "One" && (<FlatList
data={images.posts}
keyExtractor={(item) => item.imageKey}
keyExtractor={(item) => item._id}
renderItem={({ item, index }) => <ImagePost post={item} index={index} dispatch={dispatchImages} colors={colors} colorsIndexNum={indexNum}/> }
ListFooterComponent={<ListFooters feedData={images} loadMoreFunction={loadImages} postFormat="image"/>}
ItemSeparatorComponent={() => <View style={{height: 10}}/>}
Expand Down

0 comments on commit 5ca5575

Please sign in to comment.