Skip to content

Commit

Permalink
Fixed nukeop#240 : removes null from stream sources
Browse files Browse the repository at this point in the history
  • Loading branch information
trekiteasy committed Feb 8, 2019
1 parent 5a47329 commit a2360d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/actions/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function addTrackToQueue (musicSources, item) {
Promise.all(_.map(musicSources, m => m.search({ artist: item.artist, track: item.name })))
.then(results => Promise.all(results))
.then(results => {
_.pull(results, null);
dispatch({
type: ADD_STREAMS_TO_QUEUE_ITEM,
payload: Object.assign({}, item, { streams: results, loading: false })
Expand Down

0 comments on commit a2360d2

Please sign in to comment.