refactor: handle Date can is null
This commit is contained in:
parent
c7852c7782
commit
f57e2a3ba5
2 changed files with 4 additions and 4 deletions
|
|
@ -333,8 +333,8 @@ const defaultFormData = {
|
|||
webUrl: '',
|
||||
virtual: false,
|
||||
selectedImage: '',
|
||||
permitExpireDate: new Date(),
|
||||
permitIssueDate: new Date(),
|
||||
permitExpireDate: null,
|
||||
permitIssueDate: null,
|
||||
permitNo: '',
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue