From 5b96245e7da1830a8a82f91a8f800baeb72c00be Mon Sep 17 00:00:00 2001 From: yschoi Date: Mon, 28 Jul 2025 09:25:54 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B9=8C=EB=93=9C=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/dm/app/(base-layout)/pages/wrStatus/page.tsx | 2 +- apps/dm/components/ui/sdmInfoInsertForm/component.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/dm/app/(base-layout)/pages/wrStatus/page.tsx b/apps/dm/app/(base-layout)/pages/wrStatus/page.tsx index f2f6efeb6..826ab3222 100644 --- a/apps/dm/app/(base-layout)/pages/wrStatus/page.tsx +++ b/apps/dm/app/(base-layout)/pages/wrStatus/page.tsx @@ -334,7 +334,7 @@ const WrStatusPage: React.FC = () => { }); svg.appendChild(g); - }, []); + }, [handleMarkerClick, regionIdMap]); useEffect(() => { const loadSVG = async () => { diff --git a/apps/dm/components/ui/sdmInfoInsertForm/component.tsx b/apps/dm/components/ui/sdmInfoInsertForm/component.tsx index b094136ca..63638c43e 100644 --- a/apps/dm/components/ui/sdmInfoInsertForm/component.tsx +++ b/apps/dm/components/ui/sdmInfoInsertForm/component.tsx @@ -56,7 +56,7 @@ export function SdmInfoRegForm({ }, [initializeCommonData]); useEffect(() => { - const candidateTitle = form.getValues("candidateTitle"); + console.log("candidateTitle ", form.getValues("candidateTitle")); }, [form.getValues]); useEffect(() => { if (useTypesData && useTypesData.length > 0) { @@ -64,7 +64,7 @@ export function SdmInfoRegForm({ form.setValue("usePurpose", useTypesData[0]?.val?.toString() || ""); }, 500); } - }, [useTypesData, form.setValue]); + }, [useTypesData, form.setValue, form]); useEffect(() => { if (facilityName) { @@ -72,7 +72,7 @@ export function SdmInfoRegForm({ form.setValue("sdmNm", facilityName); setKey((prev) => prev + 1); } - }, [facilityName, form.setValue]); + }, [facilityName, form.setValue, form]); useEffect(() => { if (searchParams.get("dmdCoNm")) { @@ -80,7 +80,7 @@ export function SdmInfoRegForm({ setSdmNmValue(searchParams.get("dmdCoNm") || ""); setKey((prev) => prev + 1); } - }, [searchParams, form.setValue]); + }, [searchParams, form.setValue, form]); const searchCandidate = (e: React.MouseEvent) => { e.preventDefault();