Skip to content

Commit 2b92395

Browse files
authored
GYR1-806 Fix error handling for states field in hub (#6109)
1 parent 433a1a8 commit 2b92395

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/views/hub/organizations/_organization_form.html.erb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
taggable_states(@organization.state_routing_targets.pluck(:state_abbreviation)),
1111
id: "state-select", class: "text-input multi-select-state") %>
1212
</div>
13+
<% if @organization_form&.errors[:states]&.any? %>
14+
<div class="text--error">
15+
<%= @organization_form.errors[:states].join(", ") %>
16+
</div>
17+
<% end %>
1318
</div>
1419
<%= f.cfa_select(:timezone, t("general.timezone"), timezone_select_options) %>
1520
<div class="grid-flex center-aligned">

0 commit comments

Comments
 (0)