forked from fixin.me/fixin.me
Don't render index on Unit actions
This commit is contained in:
3
app/views/units/destroy.turbo_stream.erb
Normal file
3
app/views/units/destroy.turbo_stream.erb
Normal 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? %>
|
||||
Reference in New Issue
Block a user