Fix some tracklisting trackid 0

This commit is contained in:
Matthew Stratford 2020-03-29 13:42:05 +01:00
parent fbc88e14e8
commit 03146644c2

View file

@ -388,8 +388,10 @@ export const load = (
dispatch( dispatch(
mixerState.actions.setPlayerState({ player, state: "stopped" }) mixerState.actions.setPlayerState({ player, state: "stopped" })
); );
console.log(dispatch(BroadcastState.tracklistEnd(0)));
const state = getState().mixer.players[player]; const state = getState().mixer.players[player];
if (state.tracklistItemID !== -1) {
dispatch(BroadcastState.tracklistEnd(state.tracklistItemID));
}
if (state.repeat === "one") { if (state.repeat === "one") {
wavesurfer.play(); wavesurfer.play();
} else if (state.repeat === "all") { } else if (state.repeat === "all") {