refactor: handle value is null
This commit is contained in:
parent
829a5d8221
commit
f1813f4cca
2 changed files with 3 additions and 6 deletions
|
|
@ -1241,8 +1241,6 @@ export const useEmployeeForm = defineStore('form-employee', () => {
|
||||||
type: '',
|
type: '',
|
||||||
expireDate: new Date(),
|
expireDate: new Date(),
|
||||||
birthDate: new Date(),
|
birthDate: new Date(),
|
||||||
updatedAt: new Date(),
|
|
||||||
createdAt: new Date(),
|
|
||||||
workerStatus: '',
|
workerStatus: '',
|
||||||
nationality: '',
|
nationality: '',
|
||||||
gender: '',
|
gender: '',
|
||||||
|
|
@ -1253,7 +1251,6 @@ export const useEmployeeForm = defineStore('form-employee', () => {
|
||||||
firstNameEN: '',
|
firstNameEN: '',
|
||||||
firstName: '',
|
firstName: '',
|
||||||
namePrefix: '',
|
namePrefix: '',
|
||||||
employeeId: '',
|
|
||||||
number: '',
|
number: '',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -313,8 +313,8 @@ export type EmployeePassportPayload = {
|
||||||
type: string;
|
type: string;
|
||||||
expireDate: Date;
|
expireDate: Date;
|
||||||
birthDate: Date;
|
birthDate: Date;
|
||||||
updatedAt: Date;
|
updatedAt?: Date;
|
||||||
createdAt: Date;
|
createdAt?: Date;
|
||||||
workerStatus: string;
|
workerStatus: string;
|
||||||
nationality: string;
|
nationality: string;
|
||||||
gender: string;
|
gender: string;
|
||||||
|
|
@ -325,7 +325,7 @@ export type EmployeePassportPayload = {
|
||||||
firstNameEN: string;
|
firstNameEN: string;
|
||||||
firstName: string;
|
firstName: string;
|
||||||
namePrefix: string;
|
namePrefix: string;
|
||||||
employeeId: string;
|
employeeId?: string;
|
||||||
number: string;
|
number: string;
|
||||||
id?: string;
|
id?: string;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue