fix: close the drawer incorrectly after submit (#1775)
This commit is contained in:
parent
d4636311e8
commit
5c29262c95
@ -438,6 +438,7 @@ export const useCustomizeBulkUpdateActionProps = () => {
|
||||
try {
|
||||
await resource.update(updateData);
|
||||
} catch (error) {
|
||||
/* empty */
|
||||
} finally {
|
||||
actionField.data.loading = false;
|
||||
}
|
||||
@ -682,9 +683,6 @@ export const useUpdateActionProps = () => {
|
||||
updateAssociationValues,
|
||||
});
|
||||
actionField.data.loading = false;
|
||||
if (!(resource instanceof TableFieldResource)) {
|
||||
__parent?.__parent?.service?.refresh?.();
|
||||
}
|
||||
__parent?.service?.refresh?.();
|
||||
setVisible?.(false);
|
||||
if (!onSuccess?.successMessage) {
|
||||
|
Loading…
Reference in New Issue
Block a user