Skip to content

Commit ea78c2b

Browse files
fix: active cycle update payload (#6270)
1 parent ba1a314 commit ea78c2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web/core/components/cycles/modal.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use client";
22

33
import React, { useEffect, useState } from "react";
4+
import { format } from "date-fns";
45
import { mutate } from "swr";
56
// types
67
import type { CycleDateCheckData, ICycle, TCycleTabOptions } from "@plane/types";
@@ -131,8 +132,8 @@ export const CycleCreateUpdateModal: React.FC<CycleModalProps> = (props) => {
131132
if (payload.start_date && payload.end_date) {
132133
if (data?.start_date && data?.end_date)
133134
isDateValid = await dateChecker(payload.project_id ?? projectId, {
134-
start_date: payload.start_date,
135-
end_date: payload.end_date,
135+
start_date: format(payload.start_date, "yyyy-MM-dd"),
136+
end_date: format(payload.end_date, "yyyy-MM-dd"),
136137
cycle_id: data.id,
137138
});
138139
else

0 commit comments

Comments
 (0)