aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/services/entity-service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/services/entity-service.ts')
-rw-r--r--catalog-ui/src/app/services/entity-service.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/catalog-ui/src/app/services/entity-service.ts b/catalog-ui/src/app/services/entity-service.ts
index 27b0513b39..b7ac8805ce 100644
--- a/catalog-ui/src/app/services/entity-service.ts
+++ b/catalog-ui/src/app/services/entity-service.ts
@@ -54,13 +54,13 @@ export class EntityService implements IEntityService {
let followedResponse: IComponentsArray = response.data;
let componentsList:Array<Component> = new Array();
- followedResponse.services.forEach((serviceResponse:Service) => {
+ followedResponse.services && followedResponse.services.forEach((serviceResponse:Service) => {
let component:Service = this.ComponentFactory.createService(serviceResponse); // new Service(serviceResponse);
componentsList.push(component);
this.sharingService.addUuidValue(component.uniqueId, component.uuid);
});
- followedResponse.resources.forEach((resourceResponse:Resource) => {
+ followedResponse.resources && followedResponse.resources.forEach((resourceResponse:Resource) => {
let component:Resource = this.ComponentFactory.createResource(resourceResponse);
componentsList.push(component);
this.sharingService.addUuidValue(component.uniqueId, component.uuid);