From c6c20b5965453537069dcdff727879d423b89d59 Mon Sep 17 00:00:00 2001
From: ArtOfCode- <hello@artofcode.co.uk>
Date: Mon, 1 Jun 2020 22:46:17 +0100
Subject: [PATCH] Performance improvements broke things

---
 app/views/categories/show.html.erb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/categories/show.html.erb b/app/views/categories/show.html.erb
index f1b2b8a5d..5fb77129b 100644
--- a/app/views/categories/show.html.erb
+++ b/app/views/categories/show.html.erb
@@ -8,7 +8,7 @@
   </div>
 <% end %>
 
-<% post_count = @posts.to_a.size %>
+<% post_count = @posts.count %>
 <div class="has-color-tertiary-500 category-meta" title="<%= post_count %>">
   <div>
     <%= short_number_to_human post_count, precision: 1, significant: false %>
-- 
GitLab