update
This commit is contained in:
@ -67,7 +67,7 @@ const AddDialog = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
// doCreateSucos(e);
|
||||
doCreateSucos(e);
|
||||
console.log(formField);
|
||||
setAlert({ show: false, message: '' });
|
||||
};
|
||||
@ -82,6 +82,12 @@ const AddDialog = () => {
|
||||
}
|
||||
}, [formattedTime]);
|
||||
|
||||
useEffect(() => {
|
||||
if (showAddDialog === false) {
|
||||
resetForm();
|
||||
}
|
||||
}, [showAddDialog]);
|
||||
|
||||
return (
|
||||
<Dialog open={showAddDialog} onOpenChange={(open) => handleAddDialog(open)}>
|
||||
<DialogContent className="container-fixed max-w-[768px] flex flex-col p-5 overflow-hidden">
|
||||
|
||||
Reference in New Issue
Block a user