render blank option checkbox

This commit is contained in:
Pete Matsyburka committed 2024-03-26 19:28:41 +02:00
1 parent cb1e9f2be4
commit 8aa219433b
2 files changed
+5 -2

No files matched your search

@@ -159,7 +159,9 @@ module Submissions
if field['type'].in?(%w[multiple radio])
option = field['options']&.find { |o| o['uuid'] == area['option_uuid'] }
value = Array.wrap(value).include?(option['value'])
option_name = option['value'].presence || "Option #{field['options'].index(option) + 1}"
value = Array.wrap(value).include?(option_name)
end
next unless value == true