Commit fc9bb430d8798ae57c798ce6c9618c667217ab82
1 parent
cafba922
Changed indexOf -> includes in getEdgeEventContent
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -1407,7 +1407,7 @@ export class EntityService { |
1407 | 1407 | case EdgeEventType.ASSET: |
1408 | 1408 | case EdgeEventType.DEVICE: |
1409 | 1409 | case EdgeEventType.ENTITY_VIEW: |
1410 | - if (bodyContentEdgeEventActionTypes.indexOf(entity.action) > -1) { | |
1410 | + if (bodyContentEdgeEventActionTypes.includes(entity.action)) { | |
1411 | 1411 | entityObservable = of(entity.body); |
1412 | 1412 | } else { |
1413 | 1413 | entityObservable = this.getEntity(entityType, entityId, { ignoreLoading: true, ignoreErrors: true }); | ... | ... |