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: '',
virtual: false,
selectedImage: '',
permitExpireDate: new Date(),
permitIssueDate: new Date(),
permitExpireDate: null,
permitIssueDate: null,
permitNo: '',
};

View file

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