diff --git a/packages/bruno-app/src/components/EnvironmentVariablesTable/index.js b/packages/bruno-app/src/components/EnvironmentVariablesTable/index.js index c07dbf671..7882d48a8 100644 --- a/packages/bruno-app/src/components/EnvironmentVariablesTable/index.js +++ b/packages/bruno-app/src/components/EnvironmentVariablesTable/index.js @@ -445,18 +445,7 @@ const EnvironmentVariablesTable = ({ const otherCurrent = namedValues.filter((variable) => !belongsToActiveTab(variable)); const otherSaved = savedValues.filter((variable) => !belongsToActiveTab(variable)); - // Compare against what's on disk: for an ephemeral overlay, that's - // `persistedValue`, not the scripted value Redux is holding. - const baselineForCompare = (v) => { - const stripped = stripEnvVarUid(v); - if (v?.ephemeral && v?.persistedValue !== undefined) { - stripped.value = v.persistedValue; - } - return stripped; - }; - // Compare without UIDs; only the active tab's subset decides if there's anything to save. - const hasChanges - = JSON.stringify(activeCurrent.map(stripEnvVarUid)) !== JSON.stringify(activeSaved.map(baselineForCompare)); + const hasChanges = JSON.stringify(activeCurrent.map(stripEnvVarUid)) !== JSON.stringify(activeSaved.map(stripEnvVarUid)); if (!hasChanges) { toast.error('No changes to save'); return; @@ -759,11 +748,6 @@ const EnvironmentVariablesTable = ({ isSecret={variable.secret} onChange={(newValue) => { formik.setFieldValue(`${actualIndex}.value`, newValue, true); - // Clear ephemeral metadata when user manually edits the value - if (variable.ephemeral) { - formik.setFieldValue(`${actualIndex}.ephemeral`, undefined, false); - formik.setFieldValue(`${actualIndex}.persistedValue`, undefined, false); - } // Append a new empty row when editing value on the last row if (isLastRow) { setTimeout(() => { diff --git a/packages/bruno-app/src/components/Environments/ConfirmCloseEnvironment/index.js b/packages/bruno-app/src/components/Environments/ConfirmCloseEnvironment/index.js index 94d036d6b..9a498f547 100644 --- a/packages/bruno-app/src/components/Environments/ConfirmCloseEnvironment/index.js +++ b/packages/bruno-app/src/components/Environments/ConfirmCloseEnvironment/index.js @@ -33,15 +33,15 @@ const ConfirmCloseEnvironment = ({ onCancel, onCloseWithoutSave, onSaveAndClose,
-
- -
diff --git a/packages/bruno-app/src/components/MultiLineEditor/index.js b/packages/bruno-app/src/components/MultiLineEditor/index.js index f22c6acaa..f9636b6f1 100644 --- a/packages/bruno-app/src/components/MultiLineEditor/index.js +++ b/packages/bruno-app/src/components/MultiLineEditor/index.js @@ -219,7 +219,7 @@ class MultiLineEditor extends Component { */ secretEye = (isSecret) => { return isSecret === true ? ( -