Set Date เป็น null ในหน้าเพิ่มข้อมูลลูกจ้าง

This commit is contained in:
AnandaTon 2023-07-28 17:29:47 +07:00
parent 51c4c777e5
commit de0c00baca
3 changed files with 1140 additions and 4 deletions

View file

@ -14,7 +14,7 @@ interface Information {
prefixId: string | null;
firstname: string | null;
lastname: string | null;
birthDate: Date;
birthDate: Date | null;
genderId: string | null;
bloodId: string | null;
nationality: string | null;
@ -135,7 +135,7 @@ const defaultInformation: Information = {
prefixId: null,
firstname: null,
lastname: null,
birthDate: new Date(),
birthDate: null,
genderId: null,
bloodId: null,
nationality: null,