Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
ThaliApp
Commits
a7a7d79d
Commit
a7a7d79d
authored
May 28, 2017
by
Sébastiaan Versteeg
Browse files
Fix grid keys by using string concat
parent
0c376fae
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/components/Event.js
View file @
a7a7d79d
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment