배치면초기설정 미저장 plan에서 저장한 plan 이동 시 배치면초기설정 화면 닫힘 처리 closeAll 수정
This commit is contained in:
parent
e99236fd30
commit
a7d9c7e554
@ -139,7 +139,7 @@ export function useCanvasSetting() {
|
|||||||
|
|
||||||
const selectedRoofMaterial = useRecoilValue(selectedRoofMaterialSelector) // 선택된 지붕재 정보
|
const selectedRoofMaterial = useRecoilValue(selectedRoofMaterialSelector) // 선택된 지붕재 정보
|
||||||
const { floorPlanState } = useContext(FloorPlanContext) // 플랜 상태
|
const { floorPlanState } = useContext(FloorPlanContext) // 플랜 상태
|
||||||
const { closePopup } = usePopup() // 팝업 닫기
|
const { closePopup, closeAll } = usePopup() // 팝업 닫기
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const tempFetchRoofMaterials = !fetchRoofMaterials
|
const tempFetchRoofMaterials = !fetchRoofMaterials
|
||||||
@ -341,7 +341,8 @@ export function useCanvasSetting() {
|
|||||||
|
|
||||||
/* 데이터 존재 시 화면 닫기(메뉴/저장 클릭 시 제외) */
|
/* 데이터 존재 시 화면 닫기(메뉴/저장 클릭 시 제외) */
|
||||||
if (openPoint !== 'canvasMenus' && openPoint !== 'basicSettingSave') {
|
if (openPoint !== 'canvasMenus' && openPoint !== 'basicSettingSave') {
|
||||||
closePopup(popupId)
|
//closePopup(popupId)
|
||||||
|
closeAll()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
roofsRow = [
|
roofsRow = [
|
||||||
@ -553,7 +554,7 @@ export function useCanvasSetting() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 배치면초기설정 조회 */
|
/* 배치면초기설정 조회 */
|
||||||
fetchBasicSettings(Number(params.planNo), null)
|
fetchBasicSettings(Number(params.planNo), 'basicSettingSave')
|
||||||
|
|
||||||
/* 모듈 선택 데이터 초기화 */
|
/* 모듈 선택 데이터 초기화 */
|
||||||
resetModuleSelectionData()
|
resetModuleSelectionData()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user