From 5c29262c95bbb865c22c14f3f43afd00936a158e Mon Sep 17 00:00:00 2001 From: black Date: Wed, 3 May 2023 23:11:52 +0800 Subject: [PATCH] fix: close the drawer incorrectly after submit (#1775) --- packages/core/client/src/block-provider/hooks/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/core/client/src/block-provider/hooks/index.ts b/packages/core/client/src/block-provider/hooks/index.ts index dbf8a41e3..28adb3435 100644 --- a/packages/core/client/src/block-provider/hooks/index.ts +++ b/packages/core/client/src/block-provider/hooks/index.ts @@ -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) {