diff --git a/apps/wr/app/(with-layout)/matMng/coMng/coSttn/page.tsx b/apps/wr/app/(with-layout)/matMng/coMng/coSttn/page.tsx index deeb4ca77..580edc7a3 100644 --- a/apps/wr/app/(with-layout)/matMng/coMng/coSttn/page.tsx +++ b/apps/wr/app/(with-layout)/matMng/coMng/coSttn/page.tsx @@ -76,7 +76,7 @@ export default function CoSttn() { } const nextData = { ...data }; - delete nextData.dmdAplyPswd; + nextData.dmdAplyPswd = ""; return nextData; }, []); diff --git a/apps/wr/components/ui/map/detailPopup/coSttnDetailPopup/coSttnDetailPopup.tsx b/apps/wr/components/ui/map/detailPopup/coSttnDetailPopup/coSttnDetailPopup.tsx index 79cd6dc30..56f8efdae 100644 --- a/apps/wr/components/ui/map/detailPopup/coSttnDetailPopup/coSttnDetailPopup.tsx +++ b/apps/wr/components/ui/map/detailPopup/coSttnDetailPopup/coSttnDetailPopup.tsx @@ -8,7 +8,7 @@ export default function CoSttnDetailPopup({isDetail} :{isDetail:DemandCompType}) } = useWrStore((state) => state); const detailData = { ...isDetail }; - delete detailData.dmdAplyPswd; + detailData.dmdAplyPswd = ""; return(
diff --git a/apps/wr/src/app/providers/app-provider.tsx b/apps/wr/src/app/providers/app-provider.tsx index 81b8a5a69..46dae821f 100644 --- a/apps/wr/src/app/providers/app-provider.tsx +++ b/apps/wr/src/app/providers/app-provider.tsx @@ -1,6 +1,6 @@ "use client"; -import { useEffect } from "react"; +import { useEffect, useState } from "react"; import { DndProvider } from "react-dnd"; import { MultiBackend, getBackendOptions } from "@minoru/react-dnd-treeview"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; @@ -49,10 +49,13 @@ function CommonCodeInitializer() { useEffect(() => { if (isLoginPage) return; if (isInit) return; - setTimeout(() => { - initCommonCodes(); - }, 3000); // 3초 후에 하는 것으로 왜냐하면 로그인 처리가 먼저 되어야 하기 때문에 - + + // 첫 페인트 이후 바로 공통 코드를 불러와 초기 화면 지연을 줄입니다. + const timer = window.setTimeout(() => { + void initCommonCodes(); + }, 2000); + + return () => window.clearTimeout(timer); }, [isInit, initCommonCodes, isLoginPage]); return null;