Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodlenet
MoodleNet Frontend
Commits
0087e6a9
Commit
0087e6a9
authored
Jun 03, 2020
by
aleclofabbro
Browse files
minor react-specific fix - missing unique key in search items
parent
51d8910d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/pages/search/index.tsx
View file @
0087e6a9
...
...
@@ -25,7 +25,6 @@ export const Search: SFC<Props> = ({ previews, pagination, filter }) => {
rel
=
"stylesheet"
href
=
"https://cdn.jsdelivr.net/npm/instantsearch.css@7.1.1/themes/reset-min.css"
/>
<
MainContainer
>
<
HomeBox
>
<
SearchWrapper
>
...
...
@@ -34,8 +33,8 @@ export const Search: SFC<Props> = ({ previews, pagination, filter }) => {
<
Header
name
=
"Search results"
/>
<
Box
>
{
previews
.
map
(
bag
=>
(
<
Box
m
=
{
2
}
>
<
bag
.
Comp
{
...
bag
.
props
}
key
=
{
bag
.
key
}
/>
<
Box
m
=
{
2
}
key
=
{
bag
.
key
}
>
<
bag
.
Comp
{
...
bag
.
props
}
/>
</
Box
>
))
}
</
Box
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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