Skip to content

Commit

Permalink
fix: include track titles in search results
Browse files Browse the repository at this point in the history
- Added trackTitle to Fuse.js search keys
- Fixes #687

Co-Authored-By: Harkirat Singh <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and hkirat committed Dec 11, 2024
1 parent 57716fb commit adf35c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/components/ContentSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function ContentSearch({ tracks }: { tracks: TrackPros[] }) {
}, []);
useEffect(() => {
const fuse = new Fuse(allTracks, {
keys: ["payload.problemTitle"],
keys: ["payload.problemTitle", "payload.trackTitle"],
});

async function fetchSearchResults() {
Expand Down

0 comments on commit adf35c5

Please sign in to comment.