From a81a330b3d5977d4ba211028a73c510544ad82f0 Mon Sep 17 00:00:00 2001 From: changkyu choi Date: Fri, 17 Jan 2025 16:40:51 +0900 Subject: [PATCH] =?UTF-8?q?floor-plan=20=EC=9D=B8=EC=9E=85=20=EC=8B=9C=20F?= =?UTF-8?q?loorPlanProvider=20Warning=20=ED=99=95=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/floor-plan/FloorPlanProvider.js | 4 ++-- .../floor-plan/modal/placementShape/PlacementShapeSetting.jsx | 4 ++-- src/hooks/option/useCanvasSetting.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/floor-plan/FloorPlanProvider.js b/src/app/floor-plan/FloorPlanProvider.js index efed75e6..fbfbea41 100644 --- a/src/app/floor-plan/FloorPlanProvider.js +++ b/src/app/floor-plan/FloorPlanProvider.js @@ -48,14 +48,14 @@ const FloorPlanProvider = ({ children }) => { const objectNo = searchParams.get('objectNo') const pid = searchParams.get('pid') - useEffect(() => { // 오류 발생으로 useEffect 사용 + //useEffect(() => { // 오류 발생으로 useEffect 사용 if (pathname === '/floor-plan') { if (pid === undefined || pid === '' || pid === null || objectNo === undefined || objectNo === '' || objectNo === null) { notFound() } setCurrentObjectNo(objectNo) } - }, [pid, objectNo]) + //}, [pid, objectNo]) const [floorPlanState, setFloorPlanState] = useState({ // 플랜 파일 업로드 모달 오픈 제어 diff --git a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx index 844cb87e..1a5ea92a 100644 --- a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx +++ b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx @@ -260,7 +260,7 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, set title={ currentRoof?.roofSizeSet === '3' ? getMessage('modal.placement.initial.setting.size.none.pitch') : currentRoof?.roofMatlNm } - ref={roofRef.roofCd} + //ref={roofRef.roofCd} options={roofMaterials.map((roof) => { return { ...roof, name: globalLocale === 'ko' ? roof.roofMatlNm : roof.roofMatlNmJp } })} @@ -346,7 +346,7 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, set
r.clCode === (currentRoof?.raft === undefined ? currentRoof?.raftBaseCd : currentRoof?.raft)) .clCodeNm diff --git a/src/hooks/option/useCanvasSetting.js b/src/hooks/option/useCanvasSetting.js index 6afced52..413be59d 100644 --- a/src/hooks/option/useCanvasSetting.js +++ b/src/hooks/option/useCanvasSetting.js @@ -290,7 +290,7 @@ export function useCanvasSetting() { let roofsRow = {} let roofsArray = {} - if (res.length > 0) { + if (res) { roofsRow = res.map((item) => { return { roofSizeSet: String(item.roofSizeSet),