fix issue #860 : ระบบทะเบียนประวัติ(ลูกจ้าง) เข้าแท็บเมนูข้อมูลข้าราชการ Error
This commit is contained in:
parent
942c88a961
commit
6768a265de
2 changed files with 2 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ export async function calculateGovAge(profileId: string, type: string) {
|
|||
}
|
||||
})
|
||||
// const firstStartDate = new Date(records[0].date);
|
||||
const firstStartDate = profile?.dateAppoint;
|
||||
const firstStartDate = profile?.dateAppoint ? profile?.dateAppoint : new Date();
|
||||
const firstEndDate = endDateFristRec ? new Date(endDateFristRec.dateGovernment) : new Date();
|
||||
|
||||
const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue