Skip to content

Commit

Permalink
Remove track from the playback queue if no audio streams are available
Browse files Browse the repository at this point in the history
  • Loading branch information
sferra committed Mar 2, 2024
1 parent 76c4840 commit 9971065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/app/actions/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export const findStreamsForTrack = (index: number) => async (dispatch, getState)
}
}

if (streamData === undefined) {
if (streamData?.length === 0) {
dispatch(removeFromQueue(index));
} else {
streamData = [
Expand Down

0 comments on commit 9971065

Please sign in to comment.