Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: reset form issue

Jonathan Summers-Muirdd0acde3aafb
diff --git a/studio/components/interfaces/Auth/SmtpForm.tsx b/studio/components/interfaces/Auth/SmtpForm.tsx
index 5aa6ce8f03c..0c17b223f50 100644
--- a/studio/components/interfaces/Auth/SmtpForm.tsx
+++ b/studio/components/interfaces/Auth/SmtpForm.tsx
@@ -232,7 +232,10 @@ const SmtpForm = observer(() => {
label="Enable Custom SMTP"
layout="flex"
onChange={() => {
- // resetForm({ values: values, initialValues: INITIAL_VALUES })
+ resetForm({
+ values: values,
+ initialValues: generateInitialValues(authConfig.config),
+ })
setEnableSmtp(!enableSmtp)
}}
descriptionText="Emails will be sent using your custom SMTP provider"