From 33781acb6e6ebf1a10de6444d1e9f3f93449fbad Mon Sep 17 00:00:00 2001 From: Monica Cellio Date: Fri, 6 Dec 2024 13:07:29 -0500 Subject: [PATCH] pagination breaks when there are no tags --- app/views/tags/category.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/tags/category.html.erb b/app/views/tags/category.html.erb index 01c8d29a3..7f1c55307 100644 --- a/app/views/tags/category.html.erb +++ b/app/views/tags/category.html.erb @@ -53,7 +53,9 @@ <% end %> <% end %> +<% if @tags&.size > 0 %> <%= will_paginate @tags, renderer: BootstrapPagination::Rails %> +<% end %> <% end %> <%# unless @tags == nil %>