From f28fe2d4d2e6651bc9cd92e2aad32452addb8e03 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Thu, 21 Apr 2022 13:42:25 +0100 Subject: [PATCH] Fix select question lint regression --- app/views/form/_select_question.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/form/_select_question.html.erb b/app/views/form/_select_question.html.erb index fb12a203b..b5c6d94a9 100644 --- a/app/views/form/_select_question.html.erb +++ b/app/views/form/_select_question.html.erb @@ -1,7 +1,7 @@ <%= render partial: "form/guidance/#{question.guidance_partial}" if question.guidance_partial %> <% selected = @case_log.public_send(question.id) || "" %> -<%= answers = question.displayed_answer_options.map { |key, value| OpenStruct.new(id: key, name: value) } %> +<% answers = question.displayed_answer_options.map { |key, value| OpenStruct.new(id: key, name: value) } %> <%= f.govuk_collection_select question.id.to_sym, answers, :id,