From 825af6d6ab8843c191431026998f34c112eac01e Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Mon, 5 Feb 2018 10:37:46 +1100 Subject: [PATCH] feat(matrix ui): correct logic for hiding pact links --- lib/pact_broker/ui/view_models/matrix_lines.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pact_broker/ui/view_models/matrix_lines.rb b/lib/pact_broker/ui/view_models/matrix_lines.rb index df1b9ee0b..a6b339856 100644 --- a/lib/pact_broker/ui/view_models/matrix_lines.rb +++ b/lib/pact_broker/ui/view_models/matrix_lines.rb @@ -15,7 +15,7 @@ def initialize rows # Don't have a URL to view ovewritten pact revisions, so don't show a link for them until we do line_group_ids = [] each do | line | - line_group_id = [line.consumer_name, line.consumer_version_number, line.provider_name, line.provider_version_number] + line_group_id = [line.consumer_name, line.consumer_version_number, line.provider_name] if line_group_ids.include?(line_group_id) line.overwritten = true else