diff --git a/app/components/check_list_component/check_list_component.html.haml b/app/components/check_list_component/check_list_component.html.haml index 371ece60..338d4d1b 100644 --- a/app/components/check_list_component/check_list_component.html.haml +++ b/app/components/check_list_component/check_list_component.html.haml @@ -5,5 +5,6 @@ = direction_text .gap-1.leading-8 - checks.map do |check| + - next unless check.check_mode_special? || (check.protocol && check.ip_family) .inline-block{title: relation_for(check)&.name} = render ActorChipComponent.new(actor: actor_for(check), text: check.display_name) diff --git a/app/models/check.rb b/app/models/check.rb index 6b7dc7a4..3db44b88 100644 --- a/app/models/check.rb +++ b/app/models/check.rb @@ -64,7 +64,7 @@ def display_name when 'special' special_label when 'network' - "#{I18n.t("protocols.#{protocol}")} (#{I18n.t("ip_families.#{ip_family}")}): #{port}" + "#{I18n.t("protocols.#{protocol}")} (#{I18n.t("ip_families.#{ip_family}")}): #{port}" if protocol && ip_family end end