1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-30 16:17:41 +01:00

updated CaptionOption key to use caption id instead of index and url in CaptionView

This commit is contained in:
Ashutosh Shinde 2024-01-06 23:18:54 +05:30
parent ec4b2f73f3
commit 32dd68c90e

View file

@ -138,8 +138,7 @@ export function CaptionsView({ id }: { id: string }) {
return (
<CaptionOption
// key must use index to prevent url collisions
// eslint-disable-next-line react/no-array-index-key
key={`${i}-${v.url}`}
key={v.id}
countryCode={v.language}
selected={v.id === selectedCaptionId}
loading={v.id === currentlyDownloading && downloadReq.loading}