Merge pull request 'feature/v2-unified-renewal' (#384) from feature/v2-unified-renewal into main
Reviewed-on: http://39.117.244.52:3000/kjs/ERP-node/pulls/384
This commit is contained in:
commit
6c303c4b8e
|
|
@ -199,12 +199,6 @@ const FileUploadComponent: React.FC<FileUploadComponentProps> = ({
|
|||
if (imageObjidFromFormData && /^\d+$/.test(String(imageObjidFromFormData))) {
|
||||
const objidStr = String(imageObjidFromFormData);
|
||||
|
||||
// 🆕 등록 모드(formData.id가 없는 경우)에서는 이전 파일 로드 스킵
|
||||
// 연속 등록 시 이전 저장의 image 값이 남아있어 다시 로드되는 것을 방지
|
||||
if (!formData?.id) {
|
||||
return;
|
||||
}
|
||||
|
||||
// 이미 같은 objid의 파일이 로드되어 있으면 스킵
|
||||
const alreadyLoaded = uploadedFiles.some(f => String(f.objid) === objidStr);
|
||||
if (alreadyLoaded) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue