Skip to content

Commit

Permalink
fix: tabs visibility (#2098)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob authored Dec 13, 2023
1 parent c89527c commit 6a4afe6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/avo/concerns/has_items.rb
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,13 @@ def visible_items
# Skip items that don't have an id
next true if !item.respond_to?(:id)

# Skip tab groups
# Skip tab groups and tabs
# Skip headings
# Skip location fields
# On location field we can have field coordinates and setters with different names
# like latitude and longitude
next true if item.is_a?(Avo::Resources::Items::TabGroup) ||
item.is_a?(Avo::Resources::Items::Tab) ||
item.is_heading? ||
item.is_a?(Avo::Fields::LocationField)

Expand Down

0 comments on commit 6a4afe6

Please sign in to comment.