2022-07-11 21:57:43 +02:00
|
|
|
- rendered = render @condition_component
|
|
|
|
|
|
|
|
- if rendered.present?
|
2022-07-13 15:38:43 +02:00
|
|
|
= turbo_stream.morph dom_id(@tdc.stable_self, :conditions) do
|
2022-07-11 21:57:43 +02:00
|
|
|
- rendered
|
|
|
|
end
|
|
|
|
- else
|
2022-07-13 15:38:43 +02:00
|
|
|
= turbo_stream.remove dom_id(@tdc.stable_self, :conditions)
|