Skip to content

Commit

Permalink
Merge #460
Browse files Browse the repository at this point in the history
460: Disable eslint error on a console warning r=bidoubiwa a=bidoubiwa

Disable eslint on a line using a warning to inform user that their document are empty.

Co-authored-by: Charlotte Vermandel <[email protected]>
  • Loading branch information
meili-bors[bot] and bidoubiwa committed Jul 20, 2023
2 parents cd669fb + b7341a5 commit 1c07527
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Results/Hit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
}
}, [])
Expand Down

0 comments on commit 1c07527

Please sign in to comment.