added key to list elements
This commit is contained in:
parent
58d1ffb66f
commit
c4e16ecfba
2 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,7 @@ function CollectionSelector(props) {
|
|||
|
||||
|
||||
const CollectionIcons = collectionLatestFile?.map((item) => (
|
||||
<CollectionDropZone
|
||||
<CollectionDropZone key={item.collection.id}
|
||||
{...rest}
|
||||
closeModal={closeUploadModal}
|
||||
showModal={showUploadModal}
|
||||
|
|
|
@ -57,6 +57,7 @@ export default function Collections(props: CollectionProps) {
|
|||
<Wrapper>
|
||||
<Chip active={!selected} onClick={clickHandler()}>All</Chip>
|
||||
{collections?.map(item => <Chip
|
||||
key={item.id}
|
||||
active={selected === item.id.toString()}
|
||||
onClick={clickHandler(item.id)}
|
||||
>{item.name}</Chip>)}
|
||||
|
|
Loading…
Add table
Reference in a new issue