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

@@ -0,0 +1,3 @@
<%= turbo_stream.replace @unit.base unless @unit.base.nil? %>
<%= turbo_stream.remove @unit %>
<%= turbo_stream.append(:units, render_no_items) if current_user.units.empty? %>