update remove button reset on edit dialog master data
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user