PERF: fix N+A+lot query

PERF: fix N+A+lot query

reviewable_counts could be {} which is technically blank.

We wanted to check for nil here

diff --git a/lib/topic_view.rb b/lib/topic_view.rb
index ab1d3e6..6f12cda 100644
--- a/lib/topic_view.rb
+++ b/lib/topic_view.rb
@@ -419,7 +419,7 @@ class TopicView
   end
 
   def reviewable_counts
-    if @reviewable_counts.blank?
+    if @reviewable_counts.nil?
 
       post_ids = @posts.map(&:id)

GitHub sha: 1d76b7b7

1 Like

N+A+lot :joy_cat:

2 Likes