From 11d4bb9167a5b2a6f40346168619901e55fbbe28 Mon Sep 17 00:00:00 2001 From: basssy Date: Mon, 2 Dec 2024 10:16:58 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=AC=EC=A0=81=EC=84=9C=20=EB=B3=B5?= =?UTF-8?q?=EC=82=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/estimate/popup/EstimateCopyPop.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/estimate/popup/EstimateCopyPop.jsx b/src/components/estimate/popup/EstimateCopyPop.jsx index 39ca5a28..04414b9f 100644 --- a/src/components/estimate/popup/EstimateCopyPop.jsx +++ b/src/components/estimate/popup/EstimateCopyPop.jsx @@ -11,7 +11,7 @@ export default function EstimateCopyPop({ planNo, setEstimateCopyPopupOpen }) { const { getMessage } = useMessage() const { get } = useAxios() - const { handleEstimateCopy, state } = useEstimateController(planNo) + const { handleEstimateCopy, estimateContextState } = useEstimateController(planNo) const { session } = useContext(SessionContext) @@ -105,10 +105,10 @@ export default function EstimateCopyPop({ planNo, setEstimateCopyPopupOpen }) { }, [planNo]) useEffect(() => { - if (state?.charger) { - setCopyReceiveUser(state.charger) + if (estimateContextState?.charger) { + setCopyReceiveUser(estimateContextState.charger) } - }, [state.charger]) + }, [estimateContextState?.charger]) //T01 1차점 자동완성 인풋때 목록 변환 const onInputChange = (key) => { @@ -282,7 +282,7 @@ export default function EstimateCopyPop({ planNo, setEstimateCopyPopupOpen }) { type="text" className="input-light" required - defaultValue={state?.charger} + defaultValue={estimateContextState?.charger} onChange={(e) => { setCopyReceiveUser(e.target.value) }}