Fixing sorting for local playlist tracks

This commit is contained in:
James Barnsley
2017-12-21 08:38:21 +13:00
parent fc2ad51e60
commit 75bb86d592
6 changed files with 31 additions and 9 deletions

View File

@ -1270,7 +1270,7 @@ const MopidyMiddleware = (function(){
});
break
case 'MOPIDY_REORDER_PLAYLIST_TRACKS':
case 'MOPIDY_REORDER_PLAYLIST_TRACKS':
instruct(socket, store, 'playlists.lookup', { uri: action.key })
.then(response => {
@ -1303,13 +1303,12 @@ const MopidyMiddleware = (function(){
playlist = Object.assign({}, playlist, { tracks: tracks })
instruct(socket, store, 'playlists.save', { playlist: playlist } )
.then(response => {
store.dispatch({
type: 'MOPIDY_RESOLVE_PLAYLIST_TRACKS',
tracks: playlist.tracks,
key: playlist.uri
})
})
});
});
});
break