From 5f47831f8e3f8df48fd287f6c4a23cb65270c21b Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Thu, 29 Aug 2024 04:43:44 +0800 Subject: [PATCH] refactor: workspace switcher style and submit form reset --- src/client/components/WorkspaceSwitcher.tsx | 2 +- src/client/routes/settings/workspace.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/components/WorkspaceSwitcher.tsx b/src/client/components/WorkspaceSwitcher.tsx index 2560a62..24a8207 100644 --- a/src/client/components/WorkspaceSwitcher.tsx +++ b/src/client/components/WorkspaceSwitcher.tsx @@ -121,7 +121,7 @@ export const WorkspaceSwitcher: React.FC = React.memo( diff --git a/src/client/routes/settings/workspace.tsx b/src/client/routes/settings/workspace.tsx index 03337d5..91c49b0 100644 --- a/src/client/routes/settings/workspace.tsx +++ b/src/client/routes/settings/workspace.tsx @@ -76,6 +76,7 @@ function PageComponent() { workspaceId, targetUserEmail: values.email, }); + form.reset(); refetchMembers(); }