Skip to content

Commit

Permalink
Fix user search and WES sample tab view not working together
Browse files Browse the repository at this point in the history
  • Loading branch information
qu8n authored and ao508 committed Aug 28, 2024
1 parent 6f15f8b commit 7b10e81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions graphql-server/src/utils/oncotree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ export function includeCancerTypeFieldsInSearch(
// ...
// ]
const sampleMetadataFilters =
// Request Samples view handler
customWhere?.hasMetadataSampleMetadata_SOME?.OR ||
// Other views handler
customWhere?.OR?.find((filter) => filter.hasMetadataSampleMetadata_SOME)
?.hasMetadataSampleMetadata_SOME?.OR;
?.hasMetadataSampleMetadata_SOME?.OR ||
// Request Samples view handler
customWhere?.hasMetadataSampleMetadata_SOME?.OR;

if (sampleMetadataFilters?.length) {
// Extract the user query: searchValues equal ["someValue"] for a single-value search
Expand Down

0 comments on commit 7b10e81

Please sign in to comment.