파일업로드 수정

This commit is contained in:
leeheejin
2025-12-10 18:38:16 +09:00
parent fa6c00b6be
commit d09c8e0787
4 changed files with 353 additions and 55 deletions

View File

@@ -761,12 +761,19 @@ export const EditModal: React.FC<EditModalProps> = ({ className }) => {
});
}
// 🔑 첨부파일 컴포넌트가 행(레코드) 단위로 파일을 저장할 수 있도록 tableName 추가
const enrichedFormData = {
...(groupData.length > 0 ? groupData[0] : formData),
tableName: screenData.screenInfo?.tableName, // 테이블명 추가
screenId: modalState.screenId, // 화면 ID 추가
};
return (
<InteractiveScreenViewerDynamic
key={component.id}
component={adjustedComponent}
allComponents={screenData.components}
formData={groupData.length > 0 ? groupData[0] : formData}
formData={enrichedFormData}
onFormDataChange={(fieldName, value) => {
// 🆕 그룹 데이터가 있으면 처리
if (groupData.length > 0) {