mirror of
https://github.com/makeplane/plane.git
synced 2025-12-25 16:19:43 +01:00
fix: active cycle update payload (#6270)
This commit is contained in:
committed by
GitHub
parent
ba1a314608
commit
ea78c2bceb
@@ -1,6 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { format } from "date-fns";
|
||||
import { mutate } from "swr";
|
||||
// types
|
||||
import type { CycleDateCheckData, ICycle, TCycleTabOptions } from "@plane/types";
|
||||
@@ -131,8 +132,8 @@ export const CycleCreateUpdateModal: React.FC<CycleModalProps> = (props) => {
|
||||
if (payload.start_date && payload.end_date) {
|
||||
if (data?.start_date && data?.end_date)
|
||||
isDateValid = await dateChecker(payload.project_id ?? projectId, {
|
||||
start_date: payload.start_date,
|
||||
end_date: payload.end_date,
|
||||
start_date: format(payload.start_date, "yyyy-MM-dd"),
|
||||
end_date: format(payload.end_date, "yyyy-MM-dd"),
|
||||
cycle_id: data.id,
|
||||
});
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user