mirror of
https://github.com/usebruno/bruno.git
synced 2025-02-22 04:31:35 +01:00
Merge pull request #920 from adarshlilha/bugfix/environment-save-empty-secret
fix(#904): fix environment save when empty secret exists
This commit is contained in:
commit
a7e2f08efc
@ -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) => {
|
||||
@ -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`} />
|
||||
|
Loading…
Reference in New Issue
Block a user