app/controllers/lookbook/previews_controller.rb in lookbook-3.0.0.alpha.1 vs app/controllers/lookbook/previews_controller.rb in lookbook-3.0.0.alpha.2

- old
+ new

@@ -37,10 +37,10 @@ target_names = Array(embed_params[:targets]).map(&:to_sym) @targets = @preview.inspector_targets.select { _1.name.to_sym.in?(target_names) } @panels = Inspector.embed_panels(embed_params[:panels], **panel_context) @actions = embed_params.fetch(:actions, []) - @preview_html = render_target_in_layout(@target, embed: true) + @preview_html = render_target_in_layout(@target) render layout: "lookbook/embed" end def preview