env var fix

This commit is contained in:
Vivian Phung 2024-05-14 20:07:02 -04:00
parent 41b9ce1096
commit 04b6a84440
No known key found for this signature in database

View File

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