From c43fe461c444352fea534c08ccf2a2174b21f8f0 Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Thu, 26 Mar 2020 10:13:53 +0100
Subject: [PATCH] See #1060: always append at the end of the queue

---
 front/src/radios.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/front/src/radios.js b/front/src/radios.js
index b10937fb9..3c46b711b 100644
--- a/front/src/radios.js
+++ b/front/src/radios.js
@@ -36,7 +36,7 @@ const RADIOS = {
       if (event.actor.local_id === current.objectId.username) {
         axios.get(`tracks/${event.object.local_id}`).then((response) => {
           if (response.data.uploads.length > 0) {
-            store.dispatch('queue/append', {track: response.data, index: store.state.queue.currentIndex + 1})
+            store.dispatch('queue/append', {track: response.data})
             this.offset += 1
           }
         }, (error) => {
-- 
GitLab