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-03-29 04:59:20 +00:00 committed by GitHub
parent 117dd15394
commit eca7cc7ced
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,10 +23,11 @@ function getItemsSplit(apiClient: ApiClient, userId: string, options: any) {
}
function mergeResults(results: BaseItemDtoQueryResult[]) {
const merged: BaseItemDtoQueryResult = {};
merged.Items = [];
merged.TotalRecordCount = 0;
merged.StartIndex = 0;
const merged: BaseItemDtoQueryResult = {
Items: [],
TotalRecordCount: 0,
StartIndex: 0
};
for (const result of results) {
if (result.Items == null) {