mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Update src/utils/jellyfin-apiclient/getItems.ts
Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
parent
5932decce5
commit
2154ea64ad
1 changed files with 1 additions and 2 deletions
|
@ -49,8 +49,7 @@ function mergeResults(results: BaseItemDtoQueryResult[]) {
|
|||
return merged;
|
||||
}
|
||||
|
||||
export function getItems(apiClient: ApiClient, userId: string, options?: any):
|
||||
Promise<BaseItemDtoQueryResult> {
|
||||
export function getItems(apiClient: ApiClient, userId: string, options?: any) {
|
||||
if (options.Ids === undefined ||
|
||||
options.Ids.split(',').length <= ITEMS_PER_REQUEST_LIMIT) {
|
||||
return apiClient.getItems(apiClient.getCurrentUserId(), options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue