From 230c60b11a5cbb96b35618eddccc3487be3bd635 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia Date: Mon, 23 Dec 2024 21:26:43 +0530 Subject: [PATCH] fix: active cycle update payload --- web/core/components/cycles/modal.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/core/components/cycles/modal.tsx b/web/core/components/cycles/modal.tsx index f8b1590c488..25fabc3f2aa 100644 --- a/web/core/components/cycles/modal.tsx +++ b/web/core/components/cycles/modal.tsx @@ -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 = (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