diff --git a/app.js b/app.js index ae86540..39603a2 100644 --- a/app.js +++ b/app.js @@ -317,8 +317,8 @@ function dnsRender() { const name = r.name.toLowerCase(); if (HIDDEN_NAMES.includes(name)) return false; const matchType = !typeFilter || r.type === typeFilter; - const content = (r.records || []) - .map((x) => x.content) + const content = (r.records && r.records.length ? r.records : [r]) + .map((x) => x.content || "") .join(" ") .toLowerCase(); const matchSearch = @@ -347,7 +347,7 @@ function dnsRender() { tbody.innerHTML = filtered .map((r) => { - const records = r.records || []; + const records = r.records && r.records.length ? r.records : [r]; const content = records .map((x) => `${escHtml(x.content)}`) .join("
"); @@ -364,6 +364,7 @@ function dnsRender() { ${statusHtml}