update add dialog municipios
This commit is contained in:
@ -52,13 +52,8 @@ const AddDialog = () => {
|
||||
if (response?.status) {
|
||||
handleAddDialog(false);
|
||||
resetForm();
|
||||
<<<<<<< HEAD
|
||||
toast.success('Municipio created successfully!');
|
||||
reload();
|
||||
=======
|
||||
reload();
|
||||
toast.success('Municipio created successfully!');
|
||||
>>>>>>> alwi
|
||||
// const createActivity = {
|
||||
// module: 'Manage Municipio',
|
||||
// description: `Create Municipio => ${selectedMunicipios}`,
|
||||
@ -100,18 +95,6 @@ const AddDialog = () => {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
<<<<<<< HEAD
|
||||
const created_time = new Date();
|
||||
const formattedTime = created_time.toISOString().slice(0, 19).replace('T', ' ');
|
||||
if (showAddDialog) {
|
||||
setFormField({
|
||||
name: formField.name,
|
||||
created_by: parsedUser.email,
|
||||
created_at: formattedTime
|
||||
});
|
||||
}
|
||||
}, [showAddDialog]);
|
||||
=======
|
||||
if (showAddDialog) {
|
||||
setFormField({
|
||||
name: formField.name,
|
||||
@ -120,7 +103,6 @@ const AddDialog = () => {
|
||||
});
|
||||
}
|
||||
}, [formattedTime]);
|
||||
>>>>>>> alwi
|
||||
|
||||
return (
|
||||
<Dialog open={showAddDialog} onOpenChange={(open) => handleAddDialog(open)}>
|
||||
|
||||
Reference in New Issue
Block a user