mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-21 21:28:39 +01:00
fix: updates
This commit is contained in:
parent
7a8d1624d1
commit
e44dcad01a
@ -798,7 +798,7 @@ export const getGlobalEnvironmentVariables = ({ globalEnvironments, activeGlobal
|
||||
if (environment) {
|
||||
each(environment.variables, (variable) => {
|
||||
if (variable.name && variable.enabled) {
|
||||
variables[variable.name] = variable.value || '';
|
||||
variables[variable.name] = variable.value;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -173,4 +173,4 @@ export const generateUidBasedOnHash = (str) => {
|
||||
return `${hash}`.padEnd(21, '0');
|
||||
};
|
||||
|
||||
export const stringifyIfNot = v => typeof v === 'string' ? v : '';
|
||||
export const stringifyIfNot = v => typeof v === 'string' ? v : String(v);
|
||||
|
@ -18,7 +18,7 @@ class GlobalEnvironmentsStore {
|
||||
return globalEnvironments?.map(env => {
|
||||
const variables = env.variables?.map(v => ({
|
||||
...v,
|
||||
value: v?.secret ? (this.isValidValue(v.value) ? encryptString(v.value) : '') : (v?.value || '')
|
||||
value: v?.secret ? (this.isValidValue(v.value) ? encryptString(v.value) : '') : v?.value
|
||||
})) || [];
|
||||
|
||||
return {
|
||||
@ -32,7 +32,7 @@ class GlobalEnvironmentsStore {
|
||||
return globalEnvironments?.map(env => {
|
||||
const variables = env.variables?.map(v => ({
|
||||
...v,
|
||||
value: v?.secret ? (this.isValidValue(v.value) ? decryptString(v.value) : '') : (v?.value || '')
|
||||
value: v?.secret ? (this.isValidValue(v.value) ? decryptString(v.value) : '') : v?.value
|
||||
})) || [];
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user