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] }