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
840fbed68a
commit
3629e826df
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ const ITEMS_PER_REQUEST_LIMIT = 25;
|
||||||
|
|
||||||
function getItemsSplit(apiClient: ApiClient, userId: string, options: GetItemsRequest) {
|
function getItemsSplit(apiClient: ApiClient, userId: string, options: GetItemsRequest) {
|
||||||
const optionsTemplate = { ...options };
|
const optionsTemplate = { ...options };
|
||||||
const ids = options.Ids!.split(',');
|
const ids = options.Ids?.split(',') || [];
|
||||||
const results = [];
|
const results = [];
|
||||||
const limit = options.Limit ?? Infinity;
|
const limit = options.Limit ?? Infinity;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue