From 91e77526b479e93e9dae5a4bb46e4cf41cb7d554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B5=ED=9D=AC=20=EA=B9=80?= Date: Mon, 20 Jan 2025 04:10:28 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dialog/search/search.jsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/dialog/search/search.jsx b/src/components/dialog/search/search.jsx index bc27e57..a101ece 100644 --- a/src/components/dialog/search/search.jsx +++ b/src/components/dialog/search/search.jsx @@ -203,15 +203,13 @@ export default function Search({ ...props }) { if (imagesResultID && imagesResultID.length > 0) { getImageUrl(imagesResultID).then((url) => { setRoboFlowUrlLists(url); + }).finally(() => { + setImage(null) }); } }, [imagesResultID]); - React.useEffect(() => { - if (roboFlowUrlLists) { - console.log(roboFlowUrlLists); - } - }, [roboFlowUrlLists]); + return ( <>