fix: reset form issue

This commit is contained in:
Jonathan Summers-Muir committed 2022-06-15 22:24:45 +08:00
1 parent eef88b4bde
commit dd0acde3aa
1 file changed
+4 -1
@@ -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"