Fix some tracklisting trackid 0
This commit is contained in:
parent
fbc88e14e8
commit
03146644c2
1 changed files with 3 additions and 1 deletions
|
@ -388,8 +388,10 @@ export const load = (
|
|||
dispatch(
|
||||
mixerState.actions.setPlayerState({ player, state: "stopped" })
|
||||
);
|
||||
console.log(dispatch(BroadcastState.tracklistEnd(0)));
|
||||
const state = getState().mixer.players[player];
|
||||
if (state.tracklistItemID !== -1) {
|
||||
dispatch(BroadcastState.tracklistEnd(state.tracklistItemID));
|
||||
}
|
||||
if (state.repeat === "one") {
|
||||
wavesurfer.play();
|
||||
} else if (state.repeat === "all") {
|
||||
|
|
Loading…
Reference in a new issue