diff --git a/frontend/app/components/api/api-v3/hal/hal-resource.service.ts b/frontend/app/components/api/api-v3/hal/hal-resource.service.ts index bdc66055cf..43a34739fa 100644 --- a/frontend/app/components/api/api-v3/hal/hal-resource.service.ts +++ b/frontend/app/components/api/api-v3/hal/hal-resource.service.ts @@ -95,7 +95,7 @@ function halResource(halTransform, HalLink, $q) { element._links = {}; linked.forEach(linkName => { - if (typeof(this[linkName]) === 'object' && this[linkName].$links && !angular.isFunction(this[linkName])) { + if (this[linkName] && !angular.isFunction(this[linkName])) { element._links[linkName] = element[linkName].$links.self.$link; }