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

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2531>
environments/review-front-wvff-mk2g74/deployments/18198
Kasper Seweryn 2023-07-20 12:52:41 +02:00 zatwierdzone przez Marge
rodzic 4b4815435c
commit 9625732b08
2 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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)