From d81f75acb49b3c44528aaa9fca85bc1445cd8599 Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Fri, 25 Apr 2025 20:52:37 +0800 Subject: [PATCH] fix: remove redundant form reset calls in useCreateAction and useUpdateAction --- .../@nocobase/plugin-auth/src/client/settings/Authenticator.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/settings/Authenticator.tsx b/packages/plugins/@nocobase/plugin-auth/src/client/settings/Authenticator.tsx index 8d53e82f7d..4583fb7320 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/settings/Authenticator.tsx +++ b/packages/plugins/@nocobase/plugin-auth/src/client/settings/Authenticator.tsx @@ -108,7 +108,6 @@ export const useCreateAction = () => { }, }); ctx.setVisible(false); - await form.reset(); field.data.loading = false; refresh(); } catch (error) { @@ -142,7 +141,6 @@ export const useUpdateAction = () => { }, }); ctx.setVisible(false); - await form.reset(); refresh(); } catch (e) { console.log(e);