Skip to content

Commit

Permalink
Merge pull request #1469 from codidact/cellio/1353-tag-search-error
Browse files Browse the repository at this point in the history
pagination breaks when there are no tags
  • Loading branch information
Oaphi authored Dec 6, 2024
2 parents f21fa8e + c2f4c17 commit 92315f2
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 92315f2

Please sign in to comment.