mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 10:23:33 +00:00
...lodash random uses inclusive on both ends
This commit is contained in:
parent
a86d44a29e
commit
5eacb4e3cb
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ export const usePlayerStore = createWithEqualityFn<PlayerSlice>()(
|
||||||
const index =
|
const index =
|
||||||
initialIndex !== undefined
|
initialIndex !== undefined
|
||||||
? initialIndex
|
? initialIndex
|
||||||
: random(0, songsToAddToQueue.length, false);
|
: random(0, songsToAddToQueue.length - 1, false);
|
||||||
|
|
||||||
const initialSong = songsToAddToQueue[index];
|
const initialSong = songsToAddToQueue[index];
|
||||||
const queueCopy = [...songsToAddToQueue];
|
const queueCopy = [...songsToAddToQueue];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue