Fix issue where the tracks list started playback at the wrong index (#759)

This commit is contained in:
Violet Caulfield
2025-12-05 14:20:12 -06:00
committed by GitHub
parent 307627e6a7
commit 1e4e654ffe

View File

@@ -75,7 +75,10 @@ export default function Tracks({
index={0}
track={track}
testID={`track-item-${index}`}
tracklist={tracksToDisplay.slice(index, index + 50)}
tracklist={tracksToDisplay.slice(
tracksToDisplay.indexOf(track),
tracksToDisplay.indexOf(track) + 50,
)}
queue={queue}
/>
) : null