diff options
author | Michael Lando <ml636r@att.com> | 2018-03-04 14:53:33 +0200 |
---|---|---|
committer | Michael Lando <ml636r@att.com> | 2018-03-07 13:19:05 +0000 |
commit | a5445100050e49e83f73424198d73cd72d672a4d (patch) | |
tree | cacf4df817df31be23e4e790d1dda857bdae061e /catalog-ui/src/app/services/entity-service.ts | |
parent | 51157f92c21976cba4914c378aaa3cba49826931 (diff) |
Sync Integ to Master
Change-Id: I71e3acc26fa612127756ac04073a522b9cc6cd74
Issue-ID: SDC-977
Signed-off-by: Gitelman, Tal (tg851x) <tg851x@intl.att.com>
Diffstat (limited to 'catalog-ui/src/app/services/entity-service.ts')
-rw-r--r-- | catalog-ui/src/app/services/entity-service.ts | 4 |
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); |