refactor: datepicker code
This commit is contained in:
parent
b2eab805e9
commit
563921d0cf
6 changed files with 26 additions and 35 deletions
|
|
@ -111,8 +111,6 @@ export const CreateUpdateModuleModal: React.FC<Props> = ({ isOpen, setIsOpen, da
|
|||
|
||||
const payload: Partial<IModule> = {
|
||||
...formData,
|
||||
start_date: formData.start_date ? renderDateFormat(formData.start_date ?? "") : null,
|
||||
target_date: formData.target_date ? renderDateFormat(formData.target_date ?? "") : null,
|
||||
};
|
||||
|
||||
if (!data) await createModule(payload);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue