mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +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;
|
else previousSongIndex = shuffledIndex - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
const next = nextSongIndex
|
const next =
|
||||||
? (queue.find(
|
nextSongIndex !== undefined
|
||||||
(song) =>
|
? (queue.find(
|
||||||
song.uniqueId ===
|
(song) =>
|
||||||
shuffledQueue[nextSongIndex as number],
|
song.uniqueId ===
|
||||||
) as QueueSong)
|
shuffledQueue[nextSongIndex as number],
|
||||||
: undefined;
|
) as QueueSong)
|
||||||
|
: undefined;
|
||||||
|
|
||||||
const previous = queue.find(
|
const previous = queue.find(
|
||||||
(song) => song.uniqueId === shuffledQueue[shuffledIndex - 1],
|
(song) => song.uniqueId === shuffledQueue[shuffledIndex - 1],
|
||||||
|
|||||||
Reference in New Issue
Block a user