소스 검색

update

tags/Baseline_30082024_FRONTEND_UAT
MSI\derek 1 년 전
부모
커밋
5d38f197a8
1개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. +8
    -2
      src/components/EditStaff/EditStaff.tsx

+ 8
- 2
src/components/EditStaff/EditStaff.tsx 파일 보기

@@ -161,10 +161,16 @@ const EditStaff: React.FC<formProps> = ({ Staff, combos, SalaryEffectiveInfo })
}))
}
// remove useless data
if (postData.joinDate === 'Invalid Date')
if (postData.joinDate === 'Invalid Date') {
postData.joinDate = null
if (postData.departDate === 'Invalid Date')
} else {
postData.joinDate = dayjs(postData.joinDate).format("YYYY-MM-DD")
}
if (postData.departDate === 'Invalid Date') {
postData.departDate = null
} else {
postData.departDate = dayjs(postData.departDate).format("YYYY-MM-DD")
}
if (!postData.joinPositionId)
postData.joinPositionId = null



불러오는 중...
취소
저장