mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
101108: Angular 15 upgrade - resolve fix
This commit is contained in:
@@ -72,8 +72,8 @@ export class RemoteDataBuildService {
|
||||
if (hasValue(obj)) {
|
||||
if (getResourceTypeValueFor((obj as any).type) === PAGINATED_LIST.value) {
|
||||
return this.buildPaginatedList<T>(obj, ...linksToFollow);
|
||||
} else if (isNotEmpty(linksToFollow) && obj instanceof HALResource) {
|
||||
return [this.linkService.resolveLinks(obj, ...linksToFollow)];
|
||||
} else if (isNotEmpty(linksToFollow)) {
|
||||
return [this.linkService.resolveLinks(obj as any, ...linksToFollow)];
|
||||
}
|
||||
}
|
||||
return [obj];
|
||||
|
Reference in New Issue
Block a user