From fd60e64205e6147580de13f68a6999f067fec45e Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Thu, 22 Aug 2024 13:11:22 -0500 Subject: [PATCH] filter out sources without citations from browse view --- server/app/graphql/resolvers/browse_sources.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/server/app/graphql/resolvers/browse_sources.rb b/server/app/graphql/resolvers/browse_sources.rb index fdd305a9c..0e21a57d9 100644 --- a/server/app/graphql/resolvers/browse_sources.rb +++ b/server/app/graphql/resolvers/browse_sources.rb @@ -9,6 +9,7 @@ class Resolvers::BrowseSources < GraphQL::Schema::Resolver scope do MaterializedViews::SourceBrowseTableRow.order('source_suggestion_count desc') + .where.not(citation: nil) .order('evidence_item_count desc') .all end