diff --git a/src/app/services/event.service.ts b/src/app/services/event.service.ts index 319e25f577..b81de80fc3 100644 --- a/src/app/services/event.service.ts +++ b/src/app/services/event.service.ts @@ -222,7 +222,7 @@ export class EventService { const policies = await this.policyService.getAll(); const policy = policies.filter(p => p.id === ev.policyId)[0]; let p1 = this.getShortId(ev.policyId); - if (policy !== null) { + if (policy != null) { p1 = PolicyType[policy.type]; }