diff --git a/ui-ngx/src/app/core/http/entity.service.ts b/ui-ngx/src/app/core/http/entity.service.ts index 0d077fea45..0931ea0abf 100644 --- a/ui-ngx/src/app/core/http/entity.service.ts +++ b/ui-ngx/src/app/core/http/entity.service.ts @@ -14,7 +14,7 @@ /// limitations under the License. /// -import { Injectable } from '@angular/core'; +import {Inject, Injectable} from '@angular/core'; import { EMPTY, forkJoin, Observable, of, throwError } from 'rxjs'; import { HttpClient } from '@angular/common/http'; import { PageLink } from '@shared/models/page/page-link'; @@ -68,7 +68,6 @@ import { StringOperation } from '@shared/models/query/query.models'; import { alarmFields } from '@shared/models/alarm.models'; - import { EdgeService } from "@core/http/edge.service"; import { ruleChainType } from "@shared/models/rule-chain.models"; import { Router } from "@angular/router"; @@ -93,7 +92,7 @@ export class EntityService { private entityRelationService: EntityRelationService, private attributeService: AttributeService, private utils: UtilsService, - private route: Router + private router: Router ) { } private getEntityObservable(entityType: EntityType, entityId: string, @@ -323,7 +322,7 @@ export class EntityService { break; case EntityType.RULE_CHAIN: pageLink.sortOrder.property = 'name'; - if (this.route.url.includes('edge')) { + if (this.router.url.includes('edge')) { entitiesObservable = this.ruleChainService.getRuleChains(pageLink, ruleChainType.edge, config); } else { entitiesObservable = this.ruleChainService.getRuleChains(pageLink, ruleChainType.core, config);