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

@@ -208,7 +208,6 @@ export const CreateUpdateIssueModal: React.FC<IssuesModalProps> = ({
const payload: Partial<IIssue> = {
...formData,
target_date: formData.target_date ? renderDateFormat(formData.target_date ?? "") : null,
};
if (!data) await createIssue(payload);