From c2805ac82ed9e5c4fab3b44689f1ba01de9e4d2e Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Wed, 22 Dec 2021 19:24:32 +0000 Subject: [PATCH] Set selected value correctly --- 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 fae3b46c0..0e321c991 100644 --- a/app/views/form/_select_question.html.erb +++ b/app/views/form/_select_question.html.erb @@ -6,6 +6,6 @@ caption: caption && !page_header.present? ? { text: caption.html_safe, size: "l" } : nil, label: { text: question.header, size: !page_header.present? ? "l" : "m", tag: !page_header.present? ? "h1" : "h2" }, hint: { text: question.hint_text&.html_safe }, - options: { disabled: [""], selected: [@case_log.public_send(question.id) || ""] }, + options: { disabled: [""], selected: @case_log.public_send(question.id) || "" }, "data-controller": "accessible-autocomplete" %>