refactor: remove legacy global env preRequest reference
This commit is contained in:
parent
c23a4bf75d
commit
91fee8d2d0
2 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import {
|
||||
getCurrentEnvironment,
|
||||
getLegacyGlobalEnvironment,
|
||||
getGlobalVariables,
|
||||
} from "~/newstore/environments"
|
||||
|
||||
export default function getEnvironmentVariablesFromScript(script: string) {
|
||||
|
|
@ -12,10 +12,10 @@ export default function getEnvironmentVariablesFromScript(script: string) {
|
|||
_variables[variable.key] = variable.value
|
||||
}
|
||||
|
||||
const globalEnv = getLegacyGlobalEnvironment()
|
||||
const globalEnv = getGlobalVariables()
|
||||
|
||||
if (globalEnv) {
|
||||
for (const variable of globalEnv.variables) {
|
||||
for (const variable of globalEnv) {
|
||||
_variables[variable.key] = variable.value
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -278,7 +278,7 @@ export const aggregateEnvs$ = combineLatest([
|
|||
results.push({ key, value, sourceEnv: "global" })
|
||||
)
|
||||
|
||||
return results
|
||||
return results
|
||||
})
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue