diff --git a/webapp/static/js/flowlist.js b/webapp/static/js/flowlist.js index 8a1c11e..228763c 100644 --- a/webapp/static/js/flowlist.js +++ b/webapp/static/js/flowlist.js @@ -393,9 +393,9 @@ 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') + // Use application protocol as first badge if defined + const appProto = flow.app_proto?.replace('failed', 'raw') ?? 'raw' + const badge = this.tagBadge(appProto.toUpperCase()) flowEl.appendChild(badge) const flowTags = flow.tags?.split(',')