mirror of
https://github.com/usebruno/bruno.git
synced 2025-02-22 12:41:37 +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(),
|
secret: Yup.boolean(),
|
||||||
type: Yup.string(),
|
type: Yup.string(),
|
||||||
uid: Yup.string(),
|
uid: Yup.string(),
|
||||||
value: Yup.string().trim()
|
value: Yup.string().trim().nullable()
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
onSubmit: (values) => {
|
onSubmit: (values) => {
|
||||||
@ -114,7 +114,7 @@ const EnvironmentVariables = ({ environment, collection }) => {
|
|||||||
className="mousetrap"
|
className="mousetrap"
|
||||||
id={`${index}.name`}
|
id={`${index}.name`}
|
||||||
name={`${index}.name`}
|
name={`${index}.name`}
|
||||||
value={formik.values[index].name}
|
value={variable.name}
|
||||||
onChange={formik.handleChange}
|
onChange={formik.handleChange}
|
||||||
/>
|
/>
|
||||||
<ErrorMessage name={`${index}.name`} />
|
<ErrorMessage name={`${index}.name`} />
|
||||||
|
Loading…
Reference in New Issue
Block a user