ancestors() sets depth for self, instead of returning new instance

This commit is contained in:
2025-01-12 18:09:34 +01:00
parent d5e7ccacf5
commit 421515e5ce
3 changed files with 10 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
<%= turbo_stream.close_form dom_id(@quantity, :edit) %>
<% @ancestors.map do |ancestor| %>
<% @ancestors.push(@quantity).map do |ancestor| %>
<%= turbo_stream.replace ancestor %>
<% end %>