Skip to content

Commit

Permalink
handle nil filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Mar 1, 2024
1 parent 08e9b25 commit b7bca7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/application/_navbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<%= nav_link "box", Model.model_name.human.pluralize, models_path(@filters) %>
</li>
<li class="nav-item">
<%= nav_link "people", Creator.model_name.human.pluralize, creators_path(@filters.except(:creator)) %>
<%= nav_link "people", Creator.model_name.human.pluralize, creators_path(@filters&.except(:creator)) %>
</li>
<li class="nav-item">
<%= nav_link "collection", Collection.model_name.human.pluralize, collections_path(@filters.except(:collection)) %>
<%= nav_link "collection", Collection.model_name.human.pluralize, collections_path(@filters&.except(:collection)) %>
</li>
<% Library.find_each do |library| %>
<li class="nav-item">
Expand Down

0 comments on commit b7bca7f

Please sign in to comment.