Skip to content

Commit

Permalink
Add data polymorphic type (#2807)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielgiroe1 committed May 24, 2024
1 parent b997304 commit f2b7a9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<div data-belongs-to-field-target="container"></div>
<% @field.types.each do |type| %>
<template data-belongs-to-field-target="type" data-type="<%= type %>">
<div>
<div data-polymorphic-type="<%= type %>">
<%= field_wrapper **field_wrapper_args.merge!(data: reload_data), label: Avo.resource_manager.get_resource_by_model_class(type.to_s).name do %>
<% if @field.is_searchable? %>
<%= render Avo::Pro::SearchableAssociations::AutocompleteComponent.new form: @form,
Expand Down

0 comments on commit f2b7a9c

Please sign in to comment.