diff --git a/src/app/rechercher/page.tsx b/src/app/rechercher/page.tsx index 695b6f3..aa139ce 100644 --- a/src/app/rechercher/page.tsx +++ b/src/app/rechercher/page.tsx @@ -109,7 +109,10 @@ async function getResults(query: string): Promise { .filter(([, specialites]) => specialites.find( (s) => - s.SubsNomId && s.SubsNomId.includes(substance.NomId.trim()), + s.SubsNomId && + s.SubsNomId.map((id) => id.trim()).includes( + substance.NomId.trim(), + ), ), ) .forEach(([groupName, specialites]) => {