From 11207c7550df908713542a71779b621b25e296b8 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Wed, 27 May 2020 20:25:12 +0300 Subject: [PATCH] Fix get enity relation infoes for empty array --- ui-ngx/src/app/core/http/entity.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/core/http/entity.service.ts b/ui-ngx/src/app/core/http/entity.service.ts index 3eb80ef6a3..cc3459b48e 100644 --- a/ui-ngx/src/app/core/http/entity.service.ts +++ b/ui-ngx/src/app/core/http/entity.service.ts @@ -1006,7 +1006,7 @@ export class EntityService { private entityRelationInfosToEntitiesInfo(entityRelations: Array, direction: EntitySearchDirection): Observable> { - if (entityRelations) { + if (entityRelations.length) { const tasks: Observable[] = []; entityRelations.forEach((entityRelation) => { tasks.push(this.entityRelationInfoToEntityInfo(entityRelation, direction));