mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix: Use userId from params
This commit is contained in:
parent
8f32341c92
commit
f758aea13b
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ function mergeResults(results: BaseItemDtoQueryResult[]) {
|
||||||
export function getItems(apiClient: ApiClient, userId: string, options?: GetItemsRequest) {
|
export function getItems(apiClient: ApiClient, userId: string, options?: GetItemsRequest) {
|
||||||
const ids = options?.Ids?.split(',');
|
const ids = options?.Ids?.split(',');
|
||||||
if (!options || !ids || ids.length <= ITEMS_PER_REQUEST_LIMIT) {
|
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);
|
const results = getItemsSplit(apiClient, userId, options);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue