Browse Source
Merge pull request #2865 from vvlladd28/bug/entity-relation
[3.0] Fix get enity relation infoes for empty array
pull/2874/head
Igor Kulikov
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
ui-ngx/src/app/core/http/entity.service.ts
|
|
|
@ -1006,7 +1006,7 @@ export class EntityService { |
|
|
|
|
|
|
|
private entityRelationInfosToEntitiesInfo(entityRelations: Array<EntityRelationInfo>, |
|
|
|
direction: EntitySearchDirection): Observable<Array<EntityInfo>> { |
|
|
|
if (entityRelations) { |
|
|
|
if (entityRelations.length) { |
|
|
|
const tasks: Observable<EntityInfo>[] = []; |
|
|
|
entityRelations.forEach((entityRelation) => { |
|
|
|
tasks.push(this.entityRelationInfoToEntityInfo(entityRelation, direction)); |
|
|
|
|