chore: check for active request variables

This commit is contained in:
nivedin
2024-02-22 14:20:53 +05:30
committed by Andrew Bastin
parent e30b59e1b5
commit 207eea538f

View File

@@ -381,14 +381,15 @@ const envVars = computed(() => {
}) })
: [ : [
...tabs.currentActiveTab.value.document.request.requestVariables.map( ...tabs.currentActiveTab.value.document.request.requestVariables.map(
(x) => { (x) =>
return { x.active
key: x.key, ? {
value: x.value, key: x.key,
sourceEnv: "RequestVariable", value: x.value,
secret: false, sourceEnv: "RequestVariable",
} secret: false,
} }
: ([] as unknown as AggregateEnvironment)
), ),
...aggregateEnvs.value, ...aggregateEnvs.value,
] ]