Fix external subtitles key in sub menu

This commit is contained in:
Zoe Roux 2024-08-12 08:43:11 +02:00
parent 37b1ffe0ca
commit 58c6815dc3
No known key found for this signature in database

View File

@ -71,9 +71,9 @@ export const RightButtons = ({
selected={!selectedSubtitle}
onSelect={() => setSubtitle(null)}
/>
{subtitles.map((x) => (
{subtitles.map((x, i) => (
<Menu.Item
key={x.index}
key={x.index ?? i}
label={x.link ? getDisplayName(x) : `${getDisplayName(x)} (${x.codec})`}
selected={selectedSubtitle === x}
disabled={!x.link}