From b7341a5c3b8b1172bb51db841260bef9a39f9d66 Mon Sep 17 00:00:00 2001 From: Charlotte Vermandel Date: Thu, 20 Jul 2023 13:29:20 +0200 Subject: [PATCH] Disable eslint error on a console warning --- src/components/Results/Hit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Results/Hit.js b/src/components/Results/Hit.js index 33fc094..0a67428 100644 --- a/src/components/Results/Hit.js +++ b/src/components/Results/Hit.js @@ -204,6 +204,7 @@ const Hit = ({ hit, imageKey }) => { useEffect(() => { if (!hit._highlightResult) { + // eslint-disable-next-line no-console console.warn('Your hits have no field. Please check your index settings.') } }, [])