fix: close the drawer incorrectly after submit (#1775)

This commit is contained in:
black 2023-05-03 23:11:52 +08:00 committed by GitHub
parent d4636311e8
commit 5c29262c95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {