update remove button reset on edit dialog master data

This commit is contained in:
Wikzyy
2025-04-17 14:05:41 +07:00
parent 4878deb0d4
commit 637cd949f4
9 changed files with 7 additions and 31 deletions

View File

@ -174,7 +174,7 @@ const EditDialog = () => {
updated_at: formattedTime
}));
}
}, [showEditDialog, parsedUser]);
}, [showEditDialog]);
const selectedPermissionNames = groups
.filter((g) => formField.permission.includes(g.id))
@ -238,7 +238,7 @@ const EditDialog = () => {
});
return false;
}
}, [formField, selectedTransferType, PutData]);
}, [formField, selectedTransferType]);
useEffect(() => {
if (!showEditDialog) return;
@ -263,7 +263,7 @@ const EditDialog = () => {
};
getCustomerList();
}, [showEditDialog, GetData]);
}, [showEditDialog]);
useEffect(() => {
if (!showEditDialog) return;
@ -287,7 +287,7 @@ const EditDialog = () => {
};
getGroupList();
}, [showEditDialog, GetData]);
}, [showEditDialog]);
useEffect(() => {
if (!showEditDialog) return;
@ -365,6 +365,7 @@ const EditDialog = () => {
return () => clearTimeout(timer);
}, [showEditDialog, selectedTransferType, GetData]);
useEffect(() => {
if (showEditDialog === false) {
resetForm();