diff --git a/app/views/application/_sidebar_item.html.erb b/app/views/application/_sidebar_item.html.erb index 6d23fe0a..3dae04f1 100644 --- a/app/views/application/_sidebar_item.html.erb +++ b/app/views/application/_sidebar_item.html.erb @@ -2,6 +2,6 @@ <%= link_to( sidebar_item.title, [current_property, sidebar_item], - # class: ('active' if current_view && current_template.name == sidebar_item.name) + class: ('active' if current_view == sidebar_item) ) %>