Commit 0087e6a9 authored by aleclofabbro's avatar aleclofabbro
Browse files

minor react-specific fix - missing unique key in search items

parent 51d8910d
...@@ -25,7 +25,6 @@ export const Search: SFC<Props> = ({ previews, pagination, filter }) => { ...@@ -25,7 +25,6 @@ export const Search: SFC<Props> = ({ previews, pagination, filter }) => {
rel="stylesheet" rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/instantsearch.css@7.1.1/themes/reset-min.css" href="https://cdn.jsdelivr.net/npm/instantsearch.css@7.1.1/themes/reset-min.css"
/> />
<MainContainer> <MainContainer>
<HomeBox> <HomeBox>
<SearchWrapper> <SearchWrapper>
...@@ -34,8 +33,8 @@ export const Search: SFC<Props> = ({ previews, pagination, filter }) => { ...@@ -34,8 +33,8 @@ export const Search: SFC<Props> = ({ previews, pagination, filter }) => {
<Header name="Search results" /> <Header name="Search results" />
<Box> <Box>
{previews.map(bag => ( {previews.map(bag => (
<Box m={2}> <Box m={2} key={bag.key}>
<bag.Comp {...bag.props} key={bag.key} /> <bag.Comp {...bag.props} />
</Box> </Box>
))} ))}
</Box> </Box>
......
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