Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: correct envExpanError calculation

Andrew Bastin0c4c8ac8bd98
diff --git a/packages/hoppscotch-app/components/environments/Edit.vue b/packages/hoppscotch-app/components/environments/Edit.vue
index 48bdc6fb7..533c39630 100644
--- a/packages/hoppscotch-app/components/environments/Edit.vue
+++ b/packages/hoppscotch-app/components/environments/Edit.vue
@@ -169,10 +169,7 @@ export default defineComponent({
computed: {
evnExpandError(): boolean {
for (const variable of this.vars) {
- const result = parseTemplateStringE(
- variable.value,
- this.workingEnv?.variables ?? []
- )
+ const result = parseTemplateStringE(variable.value, this.vars)
if (E.isLeft(result)) {
console.error("error", result.left)