[bugfix]: fix repeat one with shuffle and one track

This commit is contained in:
Kendall Garner 2024-01-28 00:49:17 -08:00
parent f467a85a86
commit 47ce0ed47b
No known key found for this signature in database
GPG key ID: 18D2767419676C87

View file

@ -342,7 +342,8 @@ export const usePlayerStore = create<PlayerSlice>()(
else previousSongIndex = shuffledIndex - 1;
}
const next = nextSongIndex
const next =
nextSongIndex !== undefined
? (queue.find(
(song) =>
song.uniqueId ===