copy track list when setting queue

This commit is contained in:
Thomas Amland 2020-08-07 10:41:10 +02:00
parent d89bbfe5f7
commit 0d0014e559

View File

@ -88,7 +88,7 @@ export const playerModule: Module<State, any> = {
actions: { actions: {
async playQueue({ commit }, { queue, index }) { async playQueue({ commit }, { queue, index }) {
commit("setQueue", queue); commit("setQueue", [...queue]);
commit("setQueueIndex", index); commit("setQueueIndex", index);
commit("setPlaying"); commit("setPlaying");
await audio.play(); await audio.play();