From 207eea538f8b8eeb572c48a266cf7a3541889002 Mon Sep 17 00:00:00 2001 From: nivedin Date: Thu, 22 Feb 2024 14:20:53 +0530 Subject: [PATCH] chore: check for active request variables --- .../src/components/smart/EnvInput.vue | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/hoppscotch-common/src/components/smart/EnvInput.vue b/packages/hoppscotch-common/src/components/smart/EnvInput.vue index a4c67e431..8bb99223b 100644 --- a/packages/hoppscotch-common/src/components/smart/EnvInput.vue +++ b/packages/hoppscotch-common/src/components/smart/EnvInput.vue @@ -381,14 +381,15 @@ const envVars = computed(() => { }) : [ ...tabs.currentActiveTab.value.document.request.requestVariables.map( - (x) => { - return { - key: x.key, - value: x.value, - sourceEnv: "RequestVariable", - secret: false, - } - } + (x) => + x.active + ? { + key: x.key, + value: x.value, + sourceEnv: "RequestVariable", + secret: false, + } + : ([] as unknown as AggregateEnvironment) ), ...aggregateEnvs.value, ]