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: `SmartEnvInput` environment context bug (#5305)
Nivedin7e10445f3ba9
diff --git a/packages/hoppscotch-common/src/components/http/RequestTab.vue b/packages/hoppscotch-common/src/components/http/RequestTab.vueindex 6e9a65a06..66352e572 100644--- a/packages/hoppscotch-common/src/components/http/RequestTab.vue+++ b/packages/hoppscotch-common/src/components/http/RequestTab.vue@@ -4,7 +4,7 @@<HttpRequest v-model="tab" /><HttpRequestOptionsv-model="tab.document.request"- v-model:option-tab="tab.document.optionTabPreference"+ v-model:option-tab="tab.document.optionTabPreference!"v-model:inherited-properties="tab.document.inheritedProperties"/></template>diff --git a/packages/hoppscotch-common/src/components/smart/EnvInput.vue b/packages/hoppscotch-common/src/components/smart/EnvInput.vueindex 2073c8b8d..748baae8a 100644--- a/packages/hoppscotch-common/src/components/smart/EnvInput.vue+++ b/packages/hoppscotch-common/src/components/smart/EnvInput.vue@@ -376,7 +376,7 @@ const aggregateEnvs = useReadonlyStream(const tabs = useService(RESTTabService)const envVars = computed(() => {- if (props.envs) {+ if (props.envs?.length) {return props.envs.map((x) => {const { key, secret } = xconst currentValue = secret ? "********" : x.currentValue