The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix error toast in email templates (#29398)
Joshen Lima574e53b9295
diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsxindex 13eea3e7e65..b0bb7cbaf96 100644--- a/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx@@ -21,7 +21,9 @@ interface TemplateEditorProps {const TemplateEditor = ({ template, authConfig }: TemplateEditorProps) => {const { ref: projectRef } = useParams()- const { mutate: updateAuthConfig, isLoading: isUpdatingConfig } = useAuthConfigUpdateMutation()+ const { mutate: updateAuthConfig, isLoading: isUpdatingConfig } = useAuthConfigUpdateMutation({+ onError: (error) => toast.error(`Failed to update email templates: ${error.message}`),+ })const { id, properties } = template@@ -51,7 +53,6 @@ const TemplateEditor = ({ template, authConfig }: TemplateEditorProps) => {updateAuthConfig({ projectRef: projectRef!, config: payload },{- onError: () => toast.error('Failed to update settings'),onSuccess: () => {toast.success('Successfully updated settings')resetForm({