From 3be98234a80221a8ec66334a7554a89a9d3a3044 Mon Sep 17 00:00:00 2001 From: kjs Date: Fri, 21 Nov 2025 15:17:38 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20conditional-container=20sections=20?= =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제: - 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 --- backend-node/src/services/menuCopyService.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backend-node/src/services/menuCopyService.ts b/backend-node/src/services/menuCopyService.ts index 17ee7505..90f49770 100644 --- a/backend-node/src/services/menuCopyService.ts +++ b/backend-node/src/services/menuCopyService.ts @@ -232,8 +232,11 @@ export class MenuCopyService { } // 2) 조건부 컨테이너 (숫자 또는 문자열) - if (props?.sections && Array.isArray(props.sections)) { - for (const section of props.sections) { + if ( + props?.componentConfig?.sections && + Array.isArray(props.componentConfig.sections) + ) { + for (const section of props.componentConfig.sections) { if (section.screenId) { const screenId = section.screenId; const numId =