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 (hasValue(obj)) {
|
||||||
if (getResourceTypeValueFor((obj as any).type) === PAGINATED_LIST.value) {
|
if (getResourceTypeValueFor((obj as any).type) === PAGINATED_LIST.value) {
|
||||||
return this.buildPaginatedList<T>(obj, ...linksToFollow);
|
return this.buildPaginatedList<T>(obj, ...linksToFollow);
|
||||||
} else if (isNotEmpty(linksToFollow) && obj instanceof HALResource) {
|
} else if (isNotEmpty(linksToFollow)) {
|
||||||
return [this.linkService.resolveLinks(obj, ...linksToFollow)];
|
return [this.linkService.resolveLinks(obj as any, ...linksToFollow)];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return [obj];
|
return [obj];
|
||||||
|
Reference in New Issue
Block a user