diff --git a/changes/changelog.d/2192.bugfix b/changes/changelog.d/2192.bugfix new file mode 100644 index 000000000..c43afc485 --- /dev/null +++ b/changes/changelog.d/2192.bugfix @@ -0,0 +1 @@ +Clear shuffled id list on queue clear (#2192) diff --git a/front/src/composables/audio/queue.ts b/front/src/composables/audio/queue.ts index f0eeb72e4..dd415a371 100644 --- a/front/src/composables/audio/queue.ts +++ b/front/src/composables/audio/queue.ts @@ -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)