From a4785c4a51397de10c97d6ff9b7ee7471995b971 Mon Sep 17 00:00:00 2001 From: basssy Date: Wed, 20 Nov 2024 17:58:12 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=AC=EC=A0=81=EC=84=9C=20=EC=A0=80?= =?UTF-8?q?=EC=9E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/estimate/Estimate.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/estimate/Estimate.jsx b/src/components/estimate/Estimate.jsx index e506b6a2..662b63ca 100644 --- a/src/components/estimate/Estimate.jsx +++ b/src/components/estimate/Estimate.jsx @@ -127,6 +127,11 @@ export default function Estimate({ params }) { setEstimateContextState({ estimateDate: estimateDate }) }, [startDate]) + //API데이터로 견적일 셋팅 + useEffect(() => { + setStartDate(estimateContextState?.estimateDate) + }, [estimateContextState?.estimateDate]) + useEffect(() => { //선택된 견적특이사항 setEstimateContextState if (isNotEmptyArray(specialNoteList)) {