Skip to content

Commit

Permalink
- search aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskovar-m2ms committed Dec 12, 2024
1 parent a72f427 commit 900d851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/components/preview/molecule/redux/dispatchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ const observationSearchFunctions = {
return obs.code.toLowerCase().includes(searchTerm.toLowerCase());
},
aliases: (obs, searchTerm) => {
return true;
return obs.identifiers?.some(idf => idf.name.toLowerCase().includes(searchTerm.toLowerCase()));
},
compoundId: (obs, searchTerm) => {
return obs.compound_code.toLowerCase().includes(searchTerm.toLowerCase());
Expand Down

0 comments on commit 900d851

Please sign in to comment.