From adf35c5c970838536385cb175b78af058cfad26f Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 20:49:10 +0000 Subject: [PATCH] fix: include track titles in search results - Added trackTitle to Fuse.js search keys - Fixes #687 Co-Authored-By: Harkirat Singh --- apps/web/components/ContentSearch.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/components/ContentSearch.tsx b/apps/web/components/ContentSearch.tsx index bb5e4c0e..6e6a8f44 100644 --- a/apps/web/components/ContentSearch.tsx +++ b/apps/web/components/ContentSearch.tsx @@ -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() {