|
@@ -41,10 +41,7 @@ export function playerReducer(state, { type, track, playlist, duration, currentT
|
|
|
if (type === 'SET_DURATION') return { ...state, 'duration': duration }
|
|
|
if (type === 'SET_VOLUME') return { ...state, 'volume': volume }
|
|
|
if (type === 'SET_PLAYLIST') return { ...state, 'playlist': playlist}
|
|
|
- if (type === 'SET_INDEX') {
|
|
|
- console.log('SEt_INDEX', playlistIndex)
|
|
|
- return { ...state, 'playlistIndex': playlistIndex}
|
|
|
- }
|
|
|
+ if (type === 'SET_INDEX') return { ...state, 'playlistIndex': playlistIndex}
|
|
|
|
|
|
if (type === 'SET_TRACK') {
|
|
|
return {
|