Fix ContactDetailScreen missing key on visits dropdown

This commit is contained in:
Jérémy Munsch 2023-08-23 12:31:26 +02:00
parent ce52471941
commit d418f1312f
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -552,7 +552,11 @@ class ContactDetailsScreen extends React.Component {
}}>
{this.state.visits.map((item, index) => {
return (
<Picker.Item label={item.title} value={index} />
<Picker.Item
label={item.title}
value={index}
key={index}
/>
);
})}
</Picker>