[agent-pipeline] pipe-20260329160157-3bqb round-2
This commit is contained in:
@@ -747,7 +747,7 @@ export default function CopyScreenModal({
|
||||
parent_group_id: parentGroupId,
|
||||
target_company_code: targetCompany,
|
||||
display_order: sourceGroupData.display_order, // 원본 정렬순서 유지
|
||||
});
|
||||
} as any);
|
||||
|
||||
if (!newGroupResponse.success || !newGroupResponse.data) {
|
||||
throw new Error(newGroupResponse.error || `그룹 생성 실패: ${sourceGroupData.group_name}`);
|
||||
@@ -790,15 +790,16 @@ export default function CopyScreenModal({
|
||||
screensWithOrder.sort((a, b) => (a.displayOrder || 0) - (b.displayOrder || 0));
|
||||
|
||||
for (const { screenData: screen, displayOrder, screenRole } of screensWithOrder) {
|
||||
if (!screen) continue;
|
||||
try {
|
||||
// 미리 생성된 화면 코드 사용
|
||||
const newScreenCode = screenCodes[codeIndex.current];
|
||||
codeIndex.current++;
|
||||
|
||||
// 진행률 업데이트
|
||||
setCopyProgress({
|
||||
current: stats.screens + 1,
|
||||
total: totalScreenCount,
|
||||
setCopyProgress({
|
||||
current: stats.screens + 1,
|
||||
total: totalScreenCount,
|
||||
message: `화면 복제 중: ${screen.screen_name}`
|
||||
});
|
||||
|
||||
@@ -926,7 +927,7 @@ export default function CopyScreenModal({
|
||||
parent_group_id: groupParentId,
|
||||
target_company_code: finalCompanyCode,
|
||||
display_order: groupDisplayOrder, // 사용자가 입력한 정렬 순서
|
||||
});
|
||||
} as any);
|
||||
|
||||
if (!newGroupResponse.success || !newGroupResponse.data) {
|
||||
throw new Error(newGroupResponse.error || "그룹 생성 실패");
|
||||
@@ -980,6 +981,7 @@ export default function CopyScreenModal({
|
||||
screensWithOrder.sort((a, b) => (a.displayOrder || 0) - (b.displayOrder || 0));
|
||||
|
||||
for (const { screenData: screen, displayOrder, screenRole } of screensWithOrder) {
|
||||
if (!screen) continue;
|
||||
try {
|
||||
// 미리 생성된 화면 코드 사용
|
||||
const newScreenCode = screenCodes[codeIndex.current];
|
||||
|
||||
Reference in New Issue
Block a user