101108: Angular 15 upgrade - resolve fix

This commit is contained in:
Kristof De Langhe
2023-04-12 17:29:54 +02:00
parent 5761698a0d
commit 84f1fcbb35

View File

@@ -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];