diff --git a/app/components/avo/views/resource_edit_component.rb b/app/components/avo/views/resource_edit_component.rb index cb09a297b3..42ecbac6fe 100644 --- a/app/components/avo/views/resource_edit_component.rb +++ b/app/components/avo/views/resource_edit_component.rb @@ -58,7 +58,7 @@ def controls # Render :show view for read only trix fields def view_for(field) - field.is_a?(Avo::Fields::TrixField) && field.is_disabled? ? :show : @view + (field.is_a?(Avo::Fields::TrixField) && field.is_disabled?) ? :show : @view end private