mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Limit number of results returned since we only use 1
This commit is contained in:
parent
74c735dbd0
commit
f52ac7a96d
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ export default function (view, params, tabContent, options) {
|
|||
function shuffle() {
|
||||
isLoading = true;
|
||||
loading.show();
|
||||
const newQuery = { ...query, SortBy: 'Random' };
|
||||
const newQuery = { ...query, SortBy: 'Random', Limit: 1 };
|
||||
return ApiClient.getItems(ApiClient.getCurrentUserId(), newQuery).then(({ Items }) => {
|
||||
playbackManager.shuffle(Items[0]);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue