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:
parent
19edc4abb8
commit
1d76b7b7b5
|
@ -419,7 +419,7 @@ class TopicView
|
|||
end
|
||||
|
||||
def reviewable_counts
|
||||
if @reviewable_counts.blank?
|
||||
if @reviewable_counts.nil?
|
||||
|
||||
post_ids = @posts.map(&:id)
|
||||
|
||||
|
|
Loading…
Reference in New Issue