fix(queue): clear shuffled id list when queue is cleared

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2531>
This commit is contained in:
Kasper Seweryn 2023-07-20 12:52:41 +02:00 committed by Marge
parent 4b4815435c
commit 9625732b08
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
Clear shuffled id list on queue clear (#2192)

View File

@ -329,6 +329,10 @@ export const useQueue = createGlobalState(() => {
clearRadio.value = true
const lastTracks = [...tracks.value]
// Clear shuffled tracks
shuffledIds.value.length = 0
tracks.value.length = 0
await delMany(lastTracks)