Using universal tracks index instead of current_track

This commit is contained in:
James Barnsley
2017-06-07 08:28:54 +12:00
parent bc1d173ab2
commit 065d4e0a63
5 changed files with 19 additions and 7 deletions

View File

@ -112,8 +112,8 @@ const mapStateToProps = (state, ownProps) => {
mopidy_connected: state.mopidy.connected,
pusher_connected: state.pusher.connected,
spotify_connected: state.spotify.connected,
spotify_authorized: state.spotify.authorized,
current_track: state.ui.current_track,
spotify_authorized: state.spotify.authorized,
current_track: (typeof(state.ui.current_track) !== 'undefined' && typeof(state.ui.tracks) !== 'undefined' && typeof(state.ui.tracks[state.ui.current_track]) !== 'undefined' ? state.ui.tracks[state.ui.current_track] : null),
dragger: state.ui.dragger
}
}