app/components/avo/fields/common/boolean_group_component.rb in avo-3.13.6 vs app/components/avo/fields/common/boolean_group_component.rb in avo-3.13.7

- old
+ new

@@ -1,6 +1,10 @@ # frozen_string_literal: true class Avo::Fields::Common::BooleanGroupComponent < Avo::BaseComponent prop :options, default: {}.freeze prop :value + + def checked(id) + @value.present? && @value.with_indifferent_access[id].present? + end end