Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: aggregate envs in har generation
Andrew Bastin6e86e27437dd
diff --git a/packages/hoppscotch-app/components/http/CodegenModal.vue b/packages/hoppscotch-app/components/http/CodegenModal.vueindex db672030e..5451619bc 100644--- a/packages/hoppscotch-app/components/http/CodegenModal.vue+++ b/packages/hoppscotch-app/components/http/CodegenModal.vue@@ -91,7 +91,7 @@ import {getEffectiveRESTRequest,resolvesEnvsInBody,} from "~/helpers/utils/EffectiveURL"-import { getCurrentEnvironment } from "~/newstore/environments"+import { Environment, getAggregateEnvs } from "~/newstore/environments"import { getRESTRequest } from "~/newstore/RESTSession"import { useI18n, useToast } from "~/helpers/utils/composables"import {@@ -121,7 +121,11 @@ const copyIcon = ref("copy")const errorState = ref(false)const requestCode = computed(() => {- const env = getCurrentEnvironment()+ const aggregateEnvs = getAggregateEnvs()+ const env: Environment = {+ name: "Env",+ variables: aggregateEnvs,+ }const effectiveRequest = getEffectiveRESTRequest(request.value, env)if (!props.show) return ""