Skip to content

Commit aa5db2f

Browse files
authored
Merge pull request #1135 from david-roper/improve-search
Improve search
2 parents d3324b5 + 6cb363d commit aa5db2f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/web/src/features/instruments/components/InstrumentShowcase/InstrumentShowcase.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ export const InstrumentShowcase: React.FC<{
3636
} else if (selectedTags.length && !selectedTags.some(({ key }) => tags.includes(key))) {
3737
return false;
3838
}
39-
return details.title.toUpperCase().includes(searchTerm.toUpperCase());
39+
return (
40+
details.title.toUpperCase().includes(searchTerm.toUpperCase()) ||
41+
tags.join(', ').toUpperCase().includes(searchTerm.toUpperCase())
42+
);
4043
});
4144
updatedFilteredInstruments.sort((a, b) => {
4245
return a.details.title.localeCompare(b.details.title);

0 commit comments

Comments
 (0)