Use `!=` for null checks (#1105)
This commit is contained in:
parent
aafcc88162
commit
18aeeef6fe
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue