refactor: datepicker code

This commit is contained in:
Aaryan Khandelwal 2023-02-02 18:33:46 +05:30
parent b2eab805e9
commit 563921d0cf
6 changed files with 26 additions and 35 deletions

View file

@ -61,9 +61,8 @@ export const CycleModal: React.FC<CycleModalProps> = (props) => {
if (workspaceSlug && projectId) {
const payload = {
...formValues,
start_date: formValues.start_date ? renderDateFormat(formValues.start_date) : null,
end_date: formValues.end_date ? renderDateFormat(formValues.end_date) : null,
};
if (initialData) {
updateCycle(initialData.id, payload);
} else {