From 3ed4325775313f3ce3b27766de4f9f7b3a95d024 Mon Sep 17 00:00:00 2001 From: basssy Date: Tue, 18 Feb 2025 15:20:46 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=AC=EC=A0=81=EC=84=9C=20=ED=83=AD?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=ED=83=AD=20=EC=9D=B4=EB=8F=99=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/estimate/Estimate.jsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/estimate/Estimate.jsx b/src/components/estimate/Estimate.jsx index 01c2bb0d..87f2804d 100644 --- a/src/components/estimate/Estimate.jsx +++ b/src/components/estimate/Estimate.jsx @@ -88,8 +88,6 @@ export default function Estimate({}) { const { getMessage } = useMessage() - const { setMenuNumber } = useCanvasMenu() - const { closeAll } = usePopup() //새로 추가한 첨부파일 props @@ -101,8 +99,6 @@ export default function Estimate({}) { const initEstimate = (currPid = currentPid) => { console.log('🚀 ~ initEstimate ~ currPid:', currPid) closeAll() - setMenuNumber(5) - setObjectNo(objectRecoil.floorPlanObjectNo) setPlanNo(currPid) @@ -120,11 +116,13 @@ export default function Estimate({}) { const apiUrl = `/api/display-item/item-list?${queryStringFormatter(param)}` post({ url: apiUrl, data: param }).then((res) => { if (res.length > 0) { - let tempList + let tempList = [] let updatedRes = [] if (estimateContextState?.itemList.length > 0) { tempList = estimateContextState.itemList.filter((item) => !res.some((resItem) => resItem.itemId === item.itemId)) updatedRes = [...res, ...tempList] + // console.log('tempList::::::::', tempList) + // console.log('updatedRes::::::::', updatedRes) } else { updatedRes = [...res] }