refactor: handle Date can is null

This commit is contained in:
Thanaphon Frappet 2024-12-11 15:00:02 +07:00
parent c7852c7782
commit f57e2a3ba5
2 changed files with 4 additions and 4 deletions

View file

@ -333,8 +333,8 @@ const defaultFormData = {
webUrl: '', webUrl: '',
virtual: false, virtual: false,
selectedImage: '', selectedImage: '',
permitExpireDate: new Date(), permitExpireDate: null,
permitIssueDate: new Date(), permitIssueDate: null,
permitNo: '', permitNo: '',
}; };

View file

@ -67,8 +67,8 @@ export type Branch = {
export type BranchWithChildren = Branch & { branch: Branch[] }; export type BranchWithChildren = Branch & { branch: Branch[] };
export type BranchCreate = { export type BranchCreate = {
permitExpireDate: Date; permitExpireDate: Date | null;
permitIssueDate: Date; permitIssueDate: Date | null;
permitNo: string; permitNo: string;
selectedImage?: string; selectedImage?: string;
code?: string; code?: string;