Skip to content

Commit

Permalink
fix: add missing and wrong key props on components
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane committed Oct 16, 2023
1 parent d4eb3ef commit 64b11d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ButtonDownload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const ButtonDownload: React.FC<ButtonDownloadProps> = memo(
</Menu.Target>
<Menu.Dropdown mah={400} style={{ overflow: "auto" }}>
{video.adaptiveFormats.map((format) => (
<Menu.Item onClick={() => handleDownload()}>
<Menu.Item key={format.type} onClick={() => handleDownload()}>
<span>
{format.type
.replace(";", ",")
Expand Down
2 changes: 1 addition & 1 deletion src/components/VideoList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const VideoList: React.FC<VideoListProps> = memo(({ videos }) => {
return (
<Box>
{videos.map((video) => (
<Video key={video.videoId} video={video} />
<Video key={`video-list-${video.videoId}`} video={video} />
))}
</Box>
);
Expand Down

0 comments on commit 64b11d1

Please sign in to comment.