lib/avo/concerns/has_items.rb in avo-3.3.2 vs lib/avo/concerns/has_items.rb in avo-3.3.3

- old
+ new

@@ -190,27 +190,9 @@ get_field_definitions.find do |f| f.id == id.to_sym end end - def tools - return [] if self.class.tools.blank? - - items - .select do |item| - next if item.nil? - - item.is_tool? - end - .map do |tool| - tool.hydrate view: view - tool - end - .select do |item| - item.visible_in_view?(view: view) - end - end - def get_items # Each group is built only by standalone items or items that have their own panel, keeping the items order grouped_items = visible_items.slice_when do |prev, curr| # Slice when the item type changes from standalone to panel or vice-versa is_standalone?(prev) != is_standalone?(curr)