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 { correntObjectNoState } from '@/store/settingAtom'
import { notFound, usePathname, useSearchParams } from 'next/navigation' import { notFound, usePathname, useSearchParams } from 'next/navigation'

View File

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