diff --git a/webapp/src/formatters.ts b/webapp/src/formatters.ts index b9ef9b87..c41afb6e 100644 --- a/webapp/src/formatters.ts +++ b/webapp/src/formatters.ts @@ -52,7 +52,7 @@ export function formatEventDescription(event: Event): string { const dns = event._source.dns!; let parts = [dns.type.toUpperCase()]; - if (dns.queries[0]) { + if (dns.queries && dns.queries[0]) { parts.push(dns.queries[0].rrtype); parts.push(dns.queries[0].rrname); } else if (dns.rrname) {