Fix directory showing tags that have no currently eligible accounts (#9872)
This commit is contained in:
		
							parent
							
								
									70405db63c
								
							
						
					
					
						commit
						6b91da97bb
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -28,7 +28,7 @@ class DirectoriesController < ApplicationController
 | 
			
		|||
  end
 | 
			
		||||
 | 
			
		||||
  def set_tags
 | 
			
		||||
    @tags = Tag.discoverable.limit(30)
 | 
			
		||||
    @tags = Tag.discoverable.limit(30).reject { |tag| tag.cached_sample_accounts.empty? }
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def set_accounts
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue