1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #4838 from dmitrylyzo/fix-getitem

This commit is contained in:
Bill Thornton 2023-10-04 12:58:06 -04:00 committed by GitHub
commit a405701978
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ function mergeResults(results: BaseItemDtoQueryResult[]) {
export function getItems(apiClient: ApiClient, userId: string, options?: GetItemsRequest) {
const ids = options?.Ids?.split(',');
if (!options || !ids || ids.length <= ITEMS_PER_REQUEST_LIMIT) {
return apiClient.getItems(apiClient.getCurrentUserId(), options);
return apiClient.getItems(userId, options);
}
const results = getItemsSplit(apiClient, userId, options);