From acb3dbc83d717331d34bc0bc45f38ce1b72046d9 Mon Sep 17 00:00:00 2001 From: milanmajchrak <90026355+milanmajchrak@users.noreply.github.com> Date: Mon, 12 Feb 2024 12:08:36 +0100 Subject: [PATCH] ufal/cannot-load-user-metadata Added searchData because it was null (#514) --- src/app/core/data/item-data.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/core/data/item-data.service.ts b/src/app/core/data/item-data.service.ts index 5bc582c86c5..d90a6a4707b 100644 --- a/src/app/core/data/item-data.service.ts +++ b/src/app/core/data/item-data.service.ts @@ -46,8 +46,8 @@ import { RestRequestMethod } from './rest-request-method'; import { CreateData, CreateDataImpl } from './base/create-data'; import { RequestParam } from '../cache/models/request-param.model'; import { dataService } from './base/data-service.decorator'; -import {SearchData} from './base/search-data'; -import {FollowLinkConfig} from '../../shared/utils/follow-link-config.model'; +import { SearchData, SearchDataImpl } from './base/search-data'; +import { FollowLinkConfig } from '../../shared/utils/follow-link-config.model'; /** * An abstract service for CRUD operations on Items @@ -420,6 +420,7 @@ export class ItemDataService extends BaseItemDataService { protected bundleService: BundleDataService, ) { super('items', requestService, rdbService, objectCache, halService, notificationsService, comparator, browseService, bundleService); + this.searchData = new SearchDataImpl(this.linkPath, requestService, rdbService, objectCache, halService, this.responseMsToLive); } searchBy(searchMethod: string, options?: FindListOptions, useCachedVersionIfAvailable?: boolean, reRequestOnStale?: boolean, ...linksToFollow: FollowLinkConfig[]): Observable>> {