mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: cycle form date
This commit is contained in:
parent
7d42262e72
commit
a840cea9e9
@ -22,9 +22,8 @@ type Props = {
|
|||||||
const defaultValues: Partial<ICycle> = {
|
const defaultValues: Partial<ICycle> = {
|
||||||
name: "",
|
name: "",
|
||||||
description: "",
|
description: "",
|
||||||
status: "draft",
|
start_date: null,
|
||||||
start_date: "",
|
end_date: null,
|
||||||
end_date: "",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const CycleForm: React.FC<Props> = ({ handleFormSubmit, handleClose, status, data }) => {
|
export const CycleForm: React.FC<Props> = ({ handleFormSubmit, handleClose, status, data }) => {
|
||||||
@ -77,7 +76,7 @@ export const CycleForm: React.FC<Props> = ({ handleFormSubmit, handleClose, stat
|
|||||||
|
|
||||||
const checkEmptyDate =
|
const checkEmptyDate =
|
||||||
(watch("start_date") === "" && watch("end_date") === "") ||
|
(watch("start_date") === "" && watch("end_date") === "") ||
|
||||||
(watch("start_date") === null && watch("end_date") === null);
|
(!watch("start_date") && !watch("end_date"));
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
reset({
|
reset({
|
||||||
|
Loading…
Reference in New Issue
Block a user