mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03: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 =
|
||||
initialIndex !== undefined
|
||||
? initialIndex
|
||||
: random(0, songsToAddToQueue.length, false);
|
||||
: random(0, songsToAddToQueue.length - 1, false);
|
||||
|
||||
const initialSong = songsToAddToQueue[index];
|
||||
const queueCopy = [...songsToAddToQueue];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue