Browse Source

Fix get enity relation infoes for empty array

pull/2865/head
Vladyslav_Prykhodko 6 years ago
parent
commit
11207c7550
  1. 2
      ui-ngx/src/app/core/http/entity.service.ts

2
ui-ngx/src/app/core/http/entity.service.ts

@ -1006,7 +1006,7 @@ export class EntityService {
private entityRelationInfosToEntitiesInfo(entityRelations: Array<EntityRelationInfo>, private entityRelationInfosToEntitiesInfo(entityRelations: Array<EntityRelationInfo>,
direction: EntitySearchDirection): Observable<Array<EntityInfo>> { direction: EntitySearchDirection): Observable<Array<EntityInfo>> {
if (entityRelations) { if (entityRelations.length) {
const tasks: Observable<EntityInfo>[] = []; const tasks: Observable<EntityInfo>[] = [];
entityRelations.forEach((entityRelation) => { entityRelations.forEach((entityRelation) => {
tasks.push(this.entityRelationInfoToEntityInfo(entityRelation, direction)); tasks.push(this.entityRelationInfoToEntityInfo(entityRelation, direction));

Loading…
Cancel
Save