From 992e538d5116b4814c6e7bfa88e2fa4a611ea8f3 Mon Sep 17 00:00:00 2001 From: Noah Zalev Date: Mon, 12 Jul 2021 17:51:40 -0400 Subject: [PATCH] Remove trailing commas from interface titles --- views/default.handlebars | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/views/default.handlebars b/views/default.handlebars index e60e0b81..930d3f88 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -10001,10 +10001,10 @@ var m = network.netif2[i]; if ((Array.isArray(m) == false) || (m.length < 1) || (m[0] == null) || ((typeof m[0].mac == 'string') && (m[0].mac.startsWith('00:00:00:00')))) continue; x += '
'; - var ifTitle = []; - if (i != null) { ifTitle.push(i); } - if (m[0].fqdn != null) { ifTitle.push(m[0].fqdn); } - if (ifTitle.length > 0) { x += '
' + EscapeHtml(ifTitle.join(', ')) + '
'; } + var ifTitle = ''; + if (i != null) ifTitle += i; + if (m[0].fqdn != null && m[0].fqdn != '') ifTitle += ', ' + m[0].fqdn; + if (ifTitle.length > 0) { x += '
' + EscapeHtml(ifTitle) + '
'; } if (m.desc) { x += addDetailItem("Description", EscapeHtml(m.desc).split('(R)').join('®')); } //if (m.dnssuffix) { x += addDetailItem("DNS Suffix", m.dnssuffix); } if (typeof m[0].mac == 'string') {