Skip to content

Commit

Permalink
Merge pull request #4837 from dmitrylyzo/fix-noitem-play
Browse files Browse the repository at this point in the history
  • Loading branch information
thornbill authored Oct 4, 2023
2 parents 1250c76 + 5fd5292 commit eb7fb6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/playback/playbackmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1734,6 +1734,8 @@ class PlaybackManager {
}

function translateItemsForPlayback(items, options) {
if (!items.length) return Promise.resolve([]);

if (items.length > 1 && options && options.ids) {
// Use the original request id array for sorting the result in the proper order
items.sort(function (a, b) {
Expand Down

0 comments on commit eb7fb6b

Please sign in to comment.