feat: fix issue with the pre-request envs
This commit is contained in:
@@ -3,7 +3,6 @@ import {
|
||||
getCurrentEnvironment,
|
||||
getGlobalVariables,
|
||||
} from "~/newstore/environments"
|
||||
import { getRESTRequest } from "~/newstore/RESTSession"
|
||||
|
||||
export const getCombinedEnvVariables = () => {
|
||||
const variables: { key: string; value: string }[] = [...getGlobalVariables()]
|
||||
@@ -24,8 +23,7 @@ export const getCombinedEnvVariables = () => {
|
||||
return variables
|
||||
}
|
||||
|
||||
export const getFinalEnvsFromPreRequest = () =>
|
||||
runPreRequestScript(
|
||||
getRESTRequest().preRequestScript,
|
||||
getCombinedEnvVariables()
|
||||
)
|
||||
export const getFinalEnvsFromPreRequest = (
|
||||
script: string,
|
||||
envs: { key: string; value: string }[]
|
||||
) => runPreRequestScript(script, envs)
|
||||
|
||||
Reference in New Issue
Block a user