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 {
|
try {
|
||||||
await resource.update(updateData);
|
await resource.update(updateData);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
/* empty */
|
||||||
} finally {
|
} finally {
|
||||||
actionField.data.loading = false;
|
actionField.data.loading = false;
|
||||||
}
|
}
|
||||||
@ -682,9 +683,6 @@ export const useUpdateActionProps = () => {
|
|||||||
updateAssociationValues,
|
updateAssociationValues,
|
||||||
});
|
});
|
||||||
actionField.data.loading = false;
|
actionField.data.loading = false;
|
||||||
if (!(resource instanceof TableFieldResource)) {
|
|
||||||
__parent?.__parent?.service?.refresh?.();
|
|
||||||
}
|
|
||||||
__parent?.service?.refresh?.();
|
__parent?.service?.refresh?.();
|
||||||
setVisible?.(false);
|
setVisible?.(false);
|
||||||
if (!onSuccess?.successMessage) {
|
if (!onSuccess?.successMessage) {
|
||||||
|
Loading…
Reference in New Issue
Block a user