Commit a7a7d79d authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix grid keys by using string concat

parent 0c376fae
......@@ -148,11 +148,10 @@ const Event = (props) => {
}).filter(item => item)
.map((list) => {
while (list.length < 3) {
list.push({ member: null });
list.push({ pk: null });
}
const key = list[0].member.toString() +
list[1].member.toString() + list[2].member.toString();
const key = list[0].pk.toString().concat(list[1].pk, list[2].pk);
return (
<View key={key} style={styles.registrationsRow}>
{list.map((reg, i) => {
......@@ -229,6 +228,7 @@ Event.propTypes = {
no_registration_message: React.PropTypes.string,
}).isRequired,
registrations: React.PropTypes.arrayOf(React.PropTypes.shape({
pk: React.PropTypes.number.isRequired,
member: React.PropTypes.number,
name: React.PropTypes.string.isRequired,
})).isRequired,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment