diff --git a/src/js/services/localstorage/middleware.js b/src/js/services/localstorage/middleware.js index db626418..71932e75 100755 --- a/src/js/services/localstorage/middleware.js +++ b/src/js/services/localstorage/middleware.js @@ -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 ){ diff --git a/src/js/views/Queue.js b/src/js/views/Queue.js index fff858cd..29f723e3 100755 --- a/src/js/views/Queue.js +++ b/src/js/views/Queue.js @@ -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 ) }