Don't render index on Unit actions

This commit is contained in:
2024-12-22 01:31:14 +01:00
parent d726e92445
commit 0659c1e1c1
6 changed files with 16 additions and 10 deletions

View File

@@ -1 +1,4 @@
<% render_errors @unit %>
<%= turbo_stream.remove @unit %>
<%= turbo_stream.replace @previous_base unless @previous_base.nil? %>
<%= turbo_stream.replace @unit.base unless @unit.base.nil? || @previous_base == @unit.base %>
<%= @before.nil? ? turbo_stream.append(:units, @unit) : turbo_stream.before(@before, @unit) %>