From 07b7bcfda53c040cb3048d1e038b6d081945f57f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20=C5=A0o=C5=A1i=C4=87?= Date: Thu, 9 Mar 2023 00:28:08 +0000 Subject: [PATCH] Update Result.js --- kitabcitab/components/Result.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitabcitab/components/Result.js b/kitabcitab/components/Result.js index 6f663c2b..b791be53 100644 --- a/kitabcitab/components/Result.js +++ b/kitabcitab/components/Result.js @@ -27,7 +27,7 @@ const Result = ({result, term}) => { useEffect(() => { sentences = splitText() checkForMatches(sentences) - }) + }, []) // ako term nije pronadjen u textu onda // treba provjeriti duzinu niza, ako niz ima jednu recenicu, recenica treba biti title, ako ne, naci medju recenicama onu koja ima term u sebi @@ -53,4 +53,4 @@ const Result = ({result, term}) => { ) } -export default Result \ No newline at end of file +export default Result