From 435847081dfe310a11ae537b67bec7fbe60980ce Mon Sep 17 00:00:00 2001 From: Adarsh Lilha Date: Wed, 8 Nov 2023 15:47:46 +0530 Subject: [PATCH] make value field nullable --- .../EnvironmentDetails/EnvironmentVariables/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/index.js b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/index.js index 9a8be422..ba6b0e9e 100644 --- a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/index.js +++ b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/index.js @@ -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} />