Skip to content

Commit

Permalink
ufal/cannot-load-user-metadata
Browse files Browse the repository at this point in the history
Added searchData because it was null (DSpace#514)
  • Loading branch information
milanmajchrak committed Feb 12, 2024
1 parent 7c745fe commit acb3dbc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/core/data/item-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<Item>[]): Observable<RemoteData<PaginatedList<Item>>> {
Expand Down

0 comments on commit acb3dbc

Please sign in to comment.