Skip to content

Commit

Permalink
handle custodian emails in filter
Browse files Browse the repository at this point in the history
  • Loading branch information
rushtong committed Sep 14, 2023
1 parent ae818eb commit 5ebfde3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ export const getSearchFilterFunctions = () => {
const secondaryCodes = datasetTerm.dataUse?.secondary.map(du => du.code);
const codes = join(', ')(concat(primaryCodes)(secondaryCodes));
const dataTypes = join(', ')(datasetTerm.study?.dataTypes);
const custodians = join(', ')(datasetTerm.study?.dataCustodianEmail);
return includes(loweredTerm, toLower(datasetTerm.datasetName)) ||
includes(loweredTerm, toLower(datasetTerm.datasetIdentifier)) ||
includes(loweredTerm, toLower(datasetTerm.dacName)) ||
Expand All @@ -489,6 +490,7 @@ export const getSearchFilterFunctions = () => {
includes(loweredTerm, toLower(datasetTerm.study?.description)) ||
includes(loweredTerm, toLower(datasetTerm.study?.dataSubmitterEmail)) ||
includes(loweredTerm, toLower(dataTypes)) ||
includes(loweredTerm, toLower(custodians)) ||
includes(loweredTerm, toLower(datasetTerm.study?.phenotype)) ||
includes(loweredTerm, toLower(datasetTerm.study?.piName)) ||
includes(loweredTerm, toLower(datasetTerm.study?.species)) ||
Expand Down

0 comments on commit 5ebfde3

Please sign in to comment.