From 4c41af710895a2c0f06b1608d297148d6e75e533 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Thu, 11 Jul 2024 00:07:19 -0600 Subject: [PATCH] webapp/events: fix dns formatting Was failing on old dns formatted events. --- webapp/src/formatters.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {