Update src/utils/jellyfin-apiclient/getItems.ts
Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user