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 3e7540f commit 5bd7756
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 @@ -1221,7 +1221,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 5bd7756

Please sign in to comment.