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: resolve personal environments correctly while editing via quick peek (#4384)
Dmitrybb21b1347162
diff --git a/packages/hoppscotch-common/src/components/environments/my/index.vue b/packages/hoppscotch-common/src/components/environments/my/index.vueindex 86ee2d215..23fdef667 100644--- a/packages/hoppscotch-common/src/components/environments/my/index.vue+++ b/packages/hoppscotch-common/src/components/environments/my/index.vue@@ -135,12 +135,11 @@ defineActionHandler("modals.my.environment.edit",({ envName, variableName, isSecret }) => {if (variableName) editingVariableName.value = variableName- const envIndex: number =- alphabeticallySortedPersonalEnvironments.value.findIndex(({ env }) => {- return env.name === envName- })- if (envName !== "Global") {- editEnvironment(envIndex)+ const env = alphabeticallySortedPersonalEnvironments.value.find(+ ({ env }) => env.name === envName+ )+ if (envName !== "Global" && env) {+ editEnvironment(env.index)secretOptionSelected.value = isSecret ?? false}}