Skip to content

Commit

Permalink
Avoid error when form label is empty for checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
wmnnd committed Feb 18, 2025
1 parent 67d339f commit 01dec22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/keila_web/views/public_form_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ defmodule KeilaWeb.PublicFormView do
[
checkbox(f, field, style: "mr-4", name: name, id: id),
" ",
field_settings.label,
field_settings.label || "",
if(field_settings.required, do: "", else: [" ", gettext("(optional)")])
]
end
Expand Down

0 comments on commit 01dec22

Please # to comment.