Deleting from queue fixed
This commit is contained in:
@ -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 ){
|
||||
|
||||
|
||||
@ -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 )
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user