From dd0acde3aafb019c4db6430fd77fba5179cfd445 Mon Sep 17 00:00:00 2001 From: Jonathan Summers-Muir Date: Wed, 15 Jun 2022 22:24:45 +0800 Subject: [PATCH] fix: reset form issue --- studio/components/interfaces/Auth/SmtpForm.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"