app/components/lookbook/nav/entity/component.rb in lookbook-1.4.0 vs app/components/lookbook/nav/entity/component.rb in lookbook-1.4.1
- old
+ new
@@ -6,10 +6,10 @@
example: :eye,
group: :eye
}.freeze
def nav_icon
- ICONS[type] || :file
+ ICONS[collapsed? ? :preview : node.type] || :file
end
def href
if collapsed?
node.first.url_path