From fc9bb430d8798ae57c798ce6c9618c667217ab82 Mon Sep 17 00:00:00 2001 From: deaflynx Date: Tue, 21 Sep 2021 15:35:52 +0300 Subject: [PATCH] Changed indexOf -> includes in getEdgeEventContent --- ui-ngx/src/app/core/http/entity.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/core/http/entity.service.ts b/ui-ngx/src/app/core/http/entity.service.ts index 015ba6ec88..3346d5ce83 100644 --- a/ui-ngx/src/app/core/http/entity.service.ts +++ b/ui-ngx/src/app/core/http/entity.service.ts @@ -1407,7 +1407,7 @@ export class EntityService { case EdgeEventType.ASSET: case EdgeEventType.DEVICE: case EdgeEventType.ENTITY_VIEW: - if (bodyContentEdgeEventActionTypes.indexOf(entity.action) > -1) { + if (bodyContentEdgeEventActionTypes.includes(entity.action)) { entityObservable = of(entity.body); } else { entityObservable = this.getEntity(entityType, entityId, { ignoreLoading: true, ignoreErrors: true });