From 153d668d16648a6b44c15fe0c54bc557f987dc79 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Wed, 15 Dec 2021 09:38:24 +0100 Subject: [PATCH] =?UTF-8?q?R=C3=A9pare=20le=20crash=20lorsque=20le=20pathI?= =?UTF-8?q?d=20n'est=20pas=20d=C3=A9fini?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #1874 --- .../components/search/SimulatorHits.tsx | 19 +++++++++++-------- site/source/pages/Simulateurs/metadata-src.js | 1 + 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/site/source/components/search/SimulatorHits.tsx b/site/source/components/search/SimulatorHits.tsx index 18fc35af7..3c9601a2f 100644 --- a/site/source/components/search/SimulatorHits.tsx +++ b/site/source/components/search/SimulatorHits.tsx @@ -56,14 +56,17 @@ export const SimulatorHits = connectHits(({ hits }: SimulatorHitsProps) => { )} - {hits.map((hit) => ( - - - - ))} + {hits.map( + (hit) => + hit.pathId && ( + + + + ) + )} ) diff --git a/site/source/pages/Simulateurs/metadata-src.js b/site/source/pages/Simulateurs/metadata-src.js index 8c9b9ce69..d13194287 100644 --- a/site/source/pages/Simulateurs/metadata-src.js +++ b/site/source/pages/Simulateurs/metadata-src.js @@ -608,6 +608,7 @@ module.exports = ({ t = (_, text) => text } = {}) => { icône: '🎩', tracking: 'dividendes', iframePath: 'dividendes', + pathId: 'simulateurs.dividendes', meta: { title: t('pages.simulateurs.dividendes.meta.title', 'Dividendes'), description: t(