From 0c5ad37ab2b6a00f809a3367e4ec1fdc8c546bf9 Mon Sep 17 00:00:00 2001 From: Kasper Seweryn Date: Mon, 15 May 2023 09:32:11 +0000 Subject: [PATCH] fix(front): resolve merging bug that breaks queue reordering Part-of: --- front/src/composables/audio/queue.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/front/src/composables/audio/queue.ts b/front/src/composables/audio/queue.ts index 4a29b18d8..2f5afb3f5 100644 --- a/front/src/composables/audio/queue.ts +++ b/front/src/composables/audio/queue.ts @@ -253,9 +253,6 @@ export const useQueue = createGlobalState(() => { ? shuffledIds : tracks - const [id] = list.value.splice(from, 1) - list.value.splice(to, 0, id) - const current = currentIndex.value // NOTE: We're batching the changes to avoid reactivity issues related to the currentIndex being clamped at list length