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: '',
|
webUrl: '',
|
||||||
virtual: false,
|
virtual: false,
|
||||||
selectedImage: '',
|
selectedImage: '',
|
||||||
permitExpireDate: new Date(),
|
permitExpireDate: null,
|
||||||
permitIssueDate: new Date(),
|
permitIssueDate: null,
|
||||||
permitNo: '',
|
permitNo: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue