Skip to content

Commit 5426372

Browse files
committed
fix failed test
1 parent ffb886d commit 5426372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/trained_messages/_form.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<div class="my-5">
4141
<%= form.label :source %>
4242
<%= form.select :source,
43-
options_for_select([['Chat', 'chat'], ['Feedspam Command', 'feedspam_command']], @trained_message.feedspam_command),
43+
options_for_select([['Chat', 'chat'], ['Feedspam Command', 'feedspam_command']], @trained_message.source),
4444
{ prompt: 'Select training target' },
4545
{ class: ["block shadow-sm rounded-md border px-3 py-2 mt-2 w-full", {"border-gray-400 focus:outline-blue-600": trained_message.errors[:source].none?, "border-red-400 focus:outline-red-600": trained_message.errors[:source].any?}] } %>
4646
</div>

0 commit comments

Comments
 (0)