This commit is contained in:
Matthew Stratford 2020-03-29 16:39:07 +01:00
parent aa26c983e7
commit 5b4911ac50

View file

@ -46,8 +46,8 @@ export const { toggleTracklisting } = broadcastState.actions;
export const tracklistStart = (player: number, trackid: number): AppThunk =>async (dispatch, getState) => {
if (getState().broadcast.tracklisting) {
console.log("Attempting to tracklist: " + trackid);
var tracklistitemid = (await sendTracklistStart(trackid)).audiologid;
dispatch(MixerState.setTracklistItemID(player, tracklistitemid))
var id = (await sendTracklistStart(trackid)).audiologid;
dispatch(MixerState.setTracklistItemID({player, id}))
}
};