added key in .map fn

This commit is contained in:
Daniel Shleifman
2021-05-27 05:23:09 +03:00
parent 9373a64490
commit 6f0e8a642d

View File

@@ -109,7 +109,7 @@ export default function DialogTorrentInfo({ torrent, open }) {
{getPlayableFile(torrentLocalComponentValue) &&
getPlayableFile(torrentLocalComponentValue).map(file => (
<ButtonGroup style={style.width100} disableElevation variant='contained' color='primary'>
<ButtonGroup key={file.id} style={style.width100} disableElevation variant='contained' color='primary'>
<Button
style={style.width100}
href={`${streamHost()}/${encodeURIComponent(file.path.split('\\').pop().split('/').pop())}?link=${