Skip to content

Commit

Permalink
webapp/events: fix dns formatting
Browse files Browse the repository at this point in the history
Was failing on old dns formatted events.
  • Loading branch information
jasonish committed Jul 11, 2024
1 parent 3289e0b commit 4c41af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/formatters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4c41af7

Please sign in to comment.