diff --git a/webapp/static/js/flowlist.js b/webapp/static/js/flowlist.js index 8a1c11e..2ee2113 100644 --- a/webapp/static/js/flowlist.js +++ b/webapp/static/js/flowlist.js @@ -393,10 +393,12 @@ class FlowList { flowInfoDiv.appendChild(flowInfoDiv2) flowEl.appendChild(flowInfoDiv) - // Use application protocol as first badge, or 'DOWN' if connection failed - const appProto = flow.app_proto?.replace('failed', 'raw') - const badge = appProto ? this.tagBadge(appProto.toUpperCase()) : this.tagBadge('DOWN', 'danger') - flowEl.appendChild(badge) + // Use application protocol as first badge if defined + const appProto = flow.app_proto?.replace('failed', 'raw') ?? 'raw' + if (appProto) { + const badge = this.tagBadge(appProto.toUpperCase()) + flowEl.appendChild(badge) + } const flowTags = flow.tags?.split(',') tags.forEach(t => {