From 05c871791412fa44840244506bcdd6fb56055a51 Mon Sep 17 00:00:00 2001 From: Paul Bob Date: Wed, 13 Dec 2023 10:16:34 +0200 Subject: [PATCH] fix: tabs visibility --- lib/avo/concerns/has_items.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/avo/concerns/has_items.rb b/lib/avo/concerns/has_items.rb index e1746f429d..2193827432 100644 --- a/lib/avo/concerns/has_items.rb +++ b/lib/avo/concerns/has_items.rb @@ -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)