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
parent
commit
e8d0e50571
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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>,
direction: EntitySearchDirection): Observable<Array<EntityInfo>> {
if (entityRelations) {
if (entityRelations.length) {
const tasks: Observable<EntityInfo>[] = [];
entityRelations.forEach((entityRelation) => {
tasks.push(this.entityRelationInfoToEntityInfo(entityRelation, direction));

Loading…
Cancel
Save