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