mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-30 23:31:51 +01:00
updated CaptionOption key to use caption id instead of index and url in CaptionView
This commit is contained in:
parent
ec4b2f73f3
commit
32dd68c90e
@ -138,8 +138,7 @@ export function CaptionsView({ id }: { id: string }) {
|
|||||||
return (
|
return (
|
||||||
<CaptionOption
|
<CaptionOption
|
||||||
// key must use index to prevent url collisions
|
// key must use index to prevent url collisions
|
||||||
// eslint-disable-next-line react/no-array-index-key
|
key={v.id}
|
||||||
key={`${i}-${v.url}`}
|
|
||||||
countryCode={v.language}
|
countryCode={v.language}
|
||||||
selected={v.id === selectedCaptionId}
|
selected={v.id === selectedCaptionId}
|
||||||
loading={v.id === currentlyDownloading && downloadReq.loading}
|
loading={v.id === currentlyDownloading && downloadReq.loading}
|
||||||
|
Loading…
Reference in New Issue
Block a user