app/components/avo/index/resource_grid_component.html.erb in avo-3.11.8 vs app/components/avo/index/resource_grid_component.html.erb in avo-3.11.9
- old
+ new
@@ -8,10 +8,10 @@
selected_resources: [],
**(try(:drag_reorder_data_attributes) || {})
} do %>
<% @resources.each_with_index do |resource, index| %>
<% cache_if Avo.configuration.cache_resources_on_index_view, resource.cache_hash(@parent_record) do %>
- <%= render(Avo::Index::GridItemComponent.new(resource: resource, reflection: @reflection, parent_record: @parent_record, parent_resource: @parent_resource, actions: actions)) %>
+ <%= render(resource.resolve_component(Avo::Index::GridItemComponent).new(resource: resource, reflection: @reflection, parent_record: @parent_record, parent_resource: @parent_resource, actions: actions)) %>
<% end %>
<% end %>
<% end %>
</turbo-frame>
<% else %>