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));