Skip to content

Commit

Permalink
pagination breaks when there are no tags
Browse files Browse the repository at this point in the history
  • Loading branch information
cellio committed Dec 6, 2024
1 parent 6b22ff8 commit 33781ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/tags/category.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@
<% end %>
<% end %>

<% if @tags&.size > 0 %>
<%= will_paginate @tags, renderer: BootstrapPagination::Rails %>
<% end %>

<% end %> <%# unless @tags == nil %>

Expand Down

0 comments on commit 33781ac

Please sign in to comment.