Browse Source

Changed indexOf -> includes in getEdgeEventContent

pull/5258/head
deaflynx 5 years ago
parent
commit
fc9bb430d8
  1. 2
      ui-ngx/src/app/core/http/entity.service.ts

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

Loading…
Cancel
Save