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();