Skip to content

Commit

Permalink
Merge pull request #920 from adarshlilha/bugfix/environment-save-empt…
Browse files Browse the repository at this point in the history
…y-secret

fix(#904): fix environment save when empty secret exists
  • Loading branch information
helloanoop authored Nov 18, 2023
2 parents 30a2eb5 + 4358470 commit a7e2f08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const EnvironmentVariables = ({ environment, collection }) => {
secret: Yup.boolean(),
type: Yup.string(),
uid: Yup.string(),
value: Yup.string().trim()
value: Yup.string().trim().nullable()
})
),
onSubmit: (values) => {
Expand Down Expand Up @@ -114,7 +114,7 @@ const EnvironmentVariables = ({ environment, collection }) => {
className="mousetrap"
id={`${index}.name`}
name={`${index}.name`}
value={formik.values[index].name}
value={variable.name}
onChange={formik.handleChange}
/>
<ErrorMessage name={`${index}.name`} />
Expand Down

0 comments on commit a7e2f08

Please sign in to comment.