1
0
Fork 0
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:
dann-merlin 2023-04-19 00:43:21 +00:00 committed by GitHub
parent 840fbed68a
commit 3629e826df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;