Skip to content

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

Chore/ef secret reset (#33842)

Terry Suttond1a17b9c6171
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/AddNewSecretForm.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/AddNewSecretForm.tsx
index ba7cc877392..4a9179318e4 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/AddNewSecretForm.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/AddNewSecretForm.tsx
@@ -82,8 +82,7 @@ const AddNewSecretForm = () => {
}
if (pairs.length) {
- // Replace all fields with new pairs
- form.reset({ secrets: pairs })
+ form.setValue('secrets', pairs)
}
}
@@ -153,7 +152,7 @@ const AddNewSecretForm = () => {
<Button
type="default"
- className="self-end h-9 flex"
+ className="h-[34px] mt-6"
icon={<MinusCircle />}
onClick={() => (fields.length > 1 ? remove(index) : form.reset(defaultValues))}
/>