Compare commits

..

No commits in common. "b3e85a11dc333482883d4ee995a545fa6820045d" and "e3a139360330bfb95f31520bccb96300c3a6de5c" have entirely different histories.

2 changed files with 12 additions and 23 deletions

View File

@ -1,4 +1,4 @@
'use client'
'ues client'
// import { correntObjectNoState } from '@/store/settingAtom'
import { notFound, usePathname, useSearchParams } from 'next/navigation'

View File

@ -326,14 +326,9 @@ export function useCanvasSetting(executeEffect = true) {
}
try {
const apiUrl = `/api/canvas-management/canvas-basic-settings/by-object/${correntObjectNo}/${planNo}`
logger.log('🔍 fetchBasicSettings API 호출:', apiUrl)
logger.log('🔍 correntObjectNo:', correntObjectNo, 'planNo:', planNo)
await get({
url: apiUrl,
url: `/api/canvas-management/canvas-basic-settings/by-object/${correntObjectNo}/${planNo}`,
}).then((res) => {
logger.log('📦 API 응답 데이터:', res)
let roofsRow = {}
let roofsArray = {}
@ -393,23 +388,17 @@ export function useCanvasSetting(executeEffect = true) {
/** 메뉴에서 배치면 초기설정 클릭 시 실행하지 않음 */
if (openPoint === null) {
logger.log('🎯 팝업 열기 조건 충족: openPoint=', openPoint, 'res.length=', res.length)
/** 배치면 초기설정 미저장 상태이면 화면 열기 */
// 다른 closeAll 호출이 끝날 때까지 기다림
//setTimeout(() => {
const placementInitialProps = {
id : popupId,
pos : {
x: 50,
y: 180,
},
planNo : planNo,
openPoint: 'useCanvasSetting',
}
addPopup(popupId, 1, <PlacementShapeSetting {...placementInitialProps} />)
// },50)
} else {
logger.log('❌ 팝업 열기 조건 불충족: openPoint=', openPoint)
const placementInitialProps = {
id: popupId,
pos: {
x: 50,
y: 180,
},
planNo: planNo,
openPoint: 'useCanvasSetting',
}
addPopup(popupId, 1, <PlacementShapeSetting {...placementInitialProps} />)
}
}