mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 14:03:06 +00:00
fix links for relationships
This commit is contained in:
@@ -227,9 +227,7 @@ export class RemoteDataBuildService {
|
||||
const domainModelConstructor = getMapsTo(normalized.constructor);
|
||||
const domainModel = Object.assign(new domainModelConstructor(), normalized, halLinks);
|
||||
|
||||
linksToFollow.forEach((linkToFollow: FollowLinkConfig<T>) => {
|
||||
this.linkService.resolveLink(domainModel, linkToFollow);
|
||||
});
|
||||
this.linkService.resolveLinks(domainModel, ...linksToFollow);
|
||||
|
||||
return domainModel;
|
||||
}
|
||||
|
Reference in New Issue
Block a user