Skip to content

Commit 7698ec0

Browse files
committed
Fix rule toggles
1 parent 0329a5f commit 7698ec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/rules/_rule.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
</div>
5858
</div>
5959
<div class="flex items-center gap-4">
60-
<%= styled_form_with model: rule, data: { controller: "auto-submit-form" } do |f| %>
60+
<%= styled_form_with model: rule, namespace: "rule_#{rule.id}", data: { controller: "auto-submit-form" } do |f| %>
6161
<%= f.toggle :active, { data: { auto_submit_form_target: "auto" } } %>
6262
<% end %>
6363
<%= render DS::Menu.new do |menu| %>

0 commit comments

Comments
 (0)