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

Fixing type in getItems.ts

Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
dann-merlin 2023-03-07 23:49:40 +00:00
parent d5e9541010
commit aede0fa8ca

View file

@ -54,7 +54,7 @@ function mergeResults(results: BaseItemDtoQueryResult[]) {
export function getItems(apiClient: ApiClient, userId: string, options?: any):
Promise<BaseItemDtoQueryResult> {
if (options.Ids === undefined ||
options.Ids.split(',').ength <= idsPerItemRequestLimit) {
options.Ids.split(',').length <= idsPerItemRequestLimit) {
return apiClient.getItems(apiClient.getCurrentUserId(), options);
}
const results = getItemsSplit(apiClient, userId, options);