env var register pass (#62)

This commit is contained in:
Vivian Phung 2024-05-14 20:08:18 -04:00 committed by GitHub
commit 879cfdb2bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,7 +22,7 @@ const AddEnvironmentVariableRow = ({
<div className="flex py-4 self-stretch">
<Input
size="md"
register={register(`variables.${index}.key`, {
{...register(`variables.${index}.key`, {
required: 'Key field cannot be empty',
})}
label={index === 0 ? 'Key' : undefined}
@ -30,7 +30,7 @@ const AddEnvironmentVariableRow = ({
<Input
size="md"
label={index === 0 ? 'Value' : undefined}
register={register(`variables.${index}.value`, {
{...register(`variables.${index}.value`, {
required: 'Value field cannot be empty',
})}
/>