We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76e0ffe commit 931f713Copy full SHA for 931f713
app/models/better_together/navigation_area.rb
@@ -37,8 +37,10 @@ def build_page_navigation_items(pages) # rubocop:todo Metrics/MethodLength
37
end
38
39
def top_level_nav_items_includes_children
40
- self&.navigation_items&.includes(:string_translations, :linkable, children:
+ # rubocop:todo Style/SafeNavigationChainLength
41
+ navigation_items&.includes(:string_translations, :linkable, children:
42
%i[string_translations linkable])&.visible&.top_level&.positioned # rubocop:enable Metrics/CollectionLiteralLength
43
+ # rubocop:enable Style/SafeNavigationChainLength
44
45
46
0 commit comments