PERF: fix N+A+lot query

reviewable_counts could be `{}` which is technically blank.

We wanted to check for nil here
This commit is contained in:
Sam Saffron 2019-06-08 12:30:21 +10:00
parent 19edc4abb8
commit 1d76b7b7b5
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ class TopicView
end
def reviewable_counts
if @reviewable_counts.blank?
if @reviewable_counts.nil?
post_ids = @posts.map(&:id)