From e8f1bbe88a9ec785dee38f1a0f9d1daeeeb83d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 9 Mar 2016 09:18:10 +0100 Subject: [PATCH] Restore default resource check --- frontend/app/components/api/api-v3/hal/hal-resource.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }