mirror of
https://github.com/supabase/supabase.git
synced 2026-10-15 22:29:11 +03:00
1 parent
5418e81efe
commit
39c4b051e6
1 file changed
+4
-1
+4
-1
@@ -82,7 +82,10 @@ const AddNewSecretForm = () => {
|
||||
}
|
||||
|
||||
if (pairs.length) {
|
||||
form.setValue('secrets', pairs)
|
||||
const currentSecrets = form.getValues('secrets')
|
||||
// Filter out any empty pairs before combining
|
||||
const nonEmptySecrets = currentSecrets.filter((secret) => secret.name || secret.value)
|
||||
form.setValue('secrets', [...nonEmptySecrets, ...pairs])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user