app/views/lookbook/nav/_preview.html.erb in lookbook-0.4.0.beta.2 vs app/views/lookbook/nav/_preview.html.erb in lookbook-0.4.1
- old
+ new
@@ -1,5 +1,5 @@
-<% examples = node.get_examples %>
+<% examples = node.get_examples.reject(&:hidden?) %>
<% if examples.many? %>
<%= render "nav/node", node: node, path: show_path(examples.first.path) do %>
<% examples.each do |example| %>
<%= render "nav/leaf", leaf: example, depth: example.hierarchy_depth + 1 %>
<% end %>