Skip to content

Commit 233f7fa

Browse files
committed
fix: associated ContentItem issues with new AssetFieldType
1 parent cc5f334 commit 233f7fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/cells/plugins/core/asset_cell.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def allowed_asset_extensions_for_form
2424
end
2525

2626
def render_max_asset_size
27-
number_to_human_size(field.validations['size']&.[]('less_than'))
27+
number_to_human_size(field.validations['max_size'])
2828
end
2929

3030
def input_classes
@@ -49,7 +49,7 @@ def render_tooltip
4949

5050
def associated_content_item_thumb_url
5151
# TODO: The thumb version needs to be configurable
52-
data['asset']['style_urls']['mini']
52+
data['asset']['versions']['mini']['url']
5353
end
5454

5555
def render_associated_content_item_thumb

0 commit comments

Comments
 (0)