Deleting from queue fixed

This commit is contained in:
James Barnsley
2016-11-12 17:09:29 +13:00
parent 153d318cfd
commit 177e2f6579
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ const localstorageMiddleware = (function(){
// append our state to a global variable. This gives us access to debug the store at any point
window._store = store
//console.log(action)
console.log(action)
switch( action.type ){

View File

@ -21,10 +21,10 @@ class Queue extends React.Component{
super(props);
}
removeTracks( tracks ){
removeTracks( tracks_indexes ){
var tlids = [];
for( var i = 0; i < tracks.length; i++ ){
tlids.push( tracks[i].tlid )
for( var i = 0; i < tracks_indexes.length; i++ ){
tlids.push( this.props.current_tracklist[tracks_indexes[i]].tlid )
}
this.props.mopidyActions.removeTracks( tlids )
}