Skip to content

Commit

Permalink
fix: active cycle update payload (#6270)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolsinghbhatia authored Dec 24, 2024
1 parent ba1a314 commit ea78c2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/core/components/cycles/modal.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ea78c2b

Please sign in to comment.