feat: 렉 구조 컴포넌트 v2 지원 및 불필요한 로그 제거
- 렉 구조 컴포넌트에서 v2-rack-structure를 지원하도록 수정하였습니다. 기존의 rack-structure 컴포넌트는 deprecated 처리되었습니다. - 불필요한 콘솔 로그 메시지를 제거하여 코드의 가독성을 향상시켰습니다. - 관련된 컴포넌트에서 v2 구조에 맞게 변경 사항을 반영하였습니다.
This commit is contained in:
@@ -547,13 +547,11 @@ export class ButtonActionExecutor {
|
||||
);
|
||||
|
||||
if (hasTableSectionData) {
|
||||
|
||||
}
|
||||
|
||||
// 🆕 EditModal 등에서 전달된 onSave 콜백이 있으면 우선 사용
|
||||
// 단, _tableSection_ 데이터가 있으면 건너뛰기 (handleUniversalFormModalTableSectionSave가 처리)
|
||||
if (onSave && !hasTableSectionData) {
|
||||
|
||||
try {
|
||||
await onSave();
|
||||
return true;
|
||||
@@ -594,10 +592,12 @@ export class ButtonActionExecutor {
|
||||
}
|
||||
} else if (value.length === 0 && key.startsWith("comp_")) {
|
||||
// comp_로 시작하는 빈 배열은 렉 구조 컴포넌트일 가능성 있음
|
||||
// allComponents에서 확인
|
||||
// allComponents에서 확인 (v1, v2 모두 지원)
|
||||
const rackStructureComponentInLayout = context.allComponents?.find(
|
||||
(comp: any) =>
|
||||
comp.type === "component" && comp.componentId === "rack-structure" && comp.columnName === key,
|
||||
comp.type === "component" &&
|
||||
(comp.componentId === "rack-structure" || comp.componentId === "v2-rack-structure") &&
|
||||
comp.columnName === key,
|
||||
);
|
||||
if (rackStructureComponentInLayout) {
|
||||
hasEmptyRackStructureField = true;
|
||||
|
||||
Reference in New Issue
Block a user