feature/screen-management #218
Loading…
Reference in New Issue
No description provided.
Delete Branch "feature/screen-management"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
문제: - 이전 커밋에서 로직을 반대로 작성 - componentType !== 'select-basic'로 했지만 - componentType === 'select-basic'일 때 건너뛰어야 함 수정: - componentType === 'select-basic'이면 통과 (아무것도 안 함) - 그 외 카테고리는 CategorySelectComponent 사용 로직: if (category && componentType === 'select-basic') { // 통과 - ComponentRegistry로 진행 } else if (category) { // CategorySelectComponent 사용 }문제: - extractReferencedScreens()에서 props.sections를 체크 - 실제 데이터 구조는 props.componentConfig.sections - 결과: conditional-container 안의 화면들이 수집되지 않음 - 예: 화면 205의 sections에 있는 202, 208 누락 해결: - props.sections → props.componentConfig.sections - conditional-container 안의 모든 화면 정상 수집 - 재귀 복사 로직은 이미 완벽하게 작동 중 참고: - 모달 안의 모달(재귀 참조)은 이미 정상 작동 - 예: 157 → 253 → 254 (3단계 재귀) ✅ 관련 파일: - backend-node/src/services/menuCopyService.ts문제: - menu_objid = 0인 공통 카테고리 값들이 19개 스킵됨 - '⏭️ 매핑할 메뉴가 없음: menu_objid=0' 로그 반복 원인: - 삼항 연산자로 0을 할당했으나, 이후 if (newMenuObjid === undefined) 체크에서 - 0이 falsy 값이 아닌데도 undefined와 비교하여 통과하지 못함 - 실제로는 newMenuObjid가 0일 때도 continue되어 스킵됨 해결: - menu_objid = 0일 경우를 명시적으로 처리 - 0인 경우 바로 0을 할당하고 continue 없이 진행 - 0이 아닌 경우만 menuIdMap에서 찾고, undefined 체크 변경 전: const newMenuObjid = value.menu_objid === 0 ? 0 : menuIdMap.get(value.menu_objid); if (newMenuObjid === undefined) continue; // 0도 여기서 걸림! 변경 후: if (value.menu_objid === 0) { newMenuObjid = 0; // 공통 설정은 그대로 0 } else { newMenuObjid = menuIdMap.get(value.menu_objid); if (newMenuObjid === undefined) continue; // 진짜 undefined만 스킵 } 영향: - 공통 카테고리 값 19개 정상 복사 - customer_mng, item_info의 division, status, currency_code 등 정상 동작