From 4e348c15788a08816b177c585ced135661fd9a76 Mon Sep 17 00:00:00 2001 From: binarygit Date: Thu, 15 Aug 2024 21:29:56 +0545 Subject: [PATCH] lint --- app/components/avo/views/resource_edit_component.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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