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
117dd15394
commit
eca7cc7ced
1 changed files with 5 additions and 4 deletions
|
@ -23,10 +23,11 @@ function getItemsSplit(apiClient: ApiClient, userId: string, options: any) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function mergeResults(results: BaseItemDtoQueryResult[]) {
|
function mergeResults(results: BaseItemDtoQueryResult[]) {
|
||||||
const merged: BaseItemDtoQueryResult = {};
|
const merged: BaseItemDtoQueryResult = {
|
||||||
merged.Items = [];
|
Items: [],
|
||||||
merged.TotalRecordCount = 0;
|
TotalRecordCount: 0,
|
||||||
merged.StartIndex = 0;
|
StartIndex: 0
|
||||||
|
};
|
||||||
|
|
||||||
for (const result of results) {
|
for (const result of results) {
|
||||||
if (result.Items == null) {
|
if (result.Items == null) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue