Fix movies Shuffle button
This commit is contained in:
@@ -31,11 +31,11 @@ export default function (view, params, tabContent, options) {
|
||||
}
|
||||
|
||||
function shuffle() {
|
||||
ApiClient.getItem(
|
||||
ApiClient.getCurrentUserId(),
|
||||
params.topParentId
|
||||
).then((item) => {
|
||||
playbackManager.shuffle(item);
|
||||
isLoading = true;
|
||||
loading.show();
|
||||
const newQuery = { ...query, SortBy: 'Random' };
|
||||
return ApiClient.getItems(ApiClient.getCurrentUserId(), newQuery).then(({ Items }) => {
|
||||
playbackManager.shuffle(Items[0]);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user