mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
[bugfix]: fix repeat one with shuffle and one track
This commit is contained in:
@@ -342,13 +342,14 @@ export const usePlayerStore = create<PlayerSlice>()(
|
||||
else previousSongIndex = shuffledIndex - 1;
|
||||
}
|
||||
|
||||
const next = nextSongIndex
|
||||
? (queue.find(
|
||||
(song) =>
|
||||
song.uniqueId ===
|
||||
shuffledQueue[nextSongIndex as number],
|
||||
) as QueueSong)
|
||||
: undefined;
|
||||
const next =
|
||||
nextSongIndex !== undefined
|
||||
? (queue.find(
|
||||
(song) =>
|
||||
song.uniqueId ===
|
||||
shuffledQueue[nextSongIndex as number],
|
||||
) as QueueSong)
|
||||
: undefined;
|
||||
|
||||
const previous = queue.find(
|
||||
(song) => song.uniqueId === shuffledQueue[shuffledIndex - 1],
|
||||
|
||||
Reference in New Issue
Block a user