Browse Source

Fix directory showing tags that have no currently eligible accounts (#9872)

Eugen Rochko 8 months ago
parent
commit
6b91da97bb
No account linked to committer's email
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/controllers/directories_controller.rb

+ 1
- 1
app/controllers/directories_controller.rb View File

@@ -28,7 +28,7 @@ class DirectoriesController < ApplicationController
28 28
   end
29 29
 
30 30
   def set_tags
31
-    @tags = Tag.discoverable.limit(30)
31
+    @tags = Tag.discoverable.limit(30).reject { |tag| tag.cached_sample_accounts.empty? }
32 32
   end
33 33
 
34 34
   def set_accounts