app/components/blacklight/document/actions_component.html.erb in blacklight-7.16.0 vs app/components/blacklight/document/actions_component.html.erb in blacklight-7.17.0
- old
+ new
@@ -1,13 +1,11 @@
<%= content_tag @tag, class: @classes do %>
- <% @actions.each do |action| %>
- <% result = capture { @view_context.render((action.component || Blacklight::Document::ActionComponent).new(action: action, document: @document, options: @options, url_opts: @url_opts, link_classes: @link_classes)) } %>
-
+ <% actions.each do |action| %>
<% if @wrapping_tag %>
<%= content_tag(@wrapping_tag, class: Array(@wrapping_classes) + [action.key]) do %>
- <%= result %>
+ <%= action %>
<% end %>
<% else %>
- <%= result %>
+ <%= action %>
<% end %>
<% end %>
<% end %>