Reset the tracklistitemid on loading new item.

This commit is contained in:
Matthew Stratford 2020-03-28 17:17:27 +00:00
parent c3f223a7d4
commit 9311593cc6

View file

@ -139,6 +139,7 @@ const mixerState = createSlice({
state.players[action.payload.player].loading = true;
state.players[action.payload.player].timeCurrent = 0;
state.players[action.payload.player].timeLength = 0;
state.players[action.payload.player].tracklistItemID = -1;
},
itemLoadComplete(state, action: PayloadAction<{ player: number }>) {
state.players[action.payload.player].loading = false;