add clear history add dialog

This commit is contained in:
Wikzyy
2025-03-16 20:23:57 +07:00
parent d442eeb37d
commit d13775090b
3 changed files with 18 additions and 0 deletions

View File

@ -103,6 +103,12 @@ const AddDialog = () => {
}
}, [formattedTime]);
useEffect(() => {
if (showAddDialog === false) {
resetForm();
}
}, [showAddDialog]);
useEffect(() => {
const fetchMunicipios = async (sorting: any) => {
try {