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: first env edit not being applied (thanks @17307)
Andrew Bastin9486279b0208
diff --git a/packages/hoppscotch-app/components/environments/Details.vue b/packages/hoppscotch-app/components/environments/Details.vueindex 80560659f..7a4c04506 100644--- a/packages/hoppscotch-app/components/environments/Details.vue+++ b/packages/hoppscotch-app/components/environments/Details.vue@@ -260,7 +260,7 @@ const saveEnvironment = () => {// Editing the Global environmentsetGlobalEnvVariables(environmentUpdated.variables)toast.success(`${t("environment.updated")}`)- } else if (props.editingEnvironmentIndex) {+ } else if (props.editingEnvironmentIndex !== null) {// Editing an environmentupdateEnvironment(props.editingEnvironmentIndex, environmentUpdated)toast.success(`${t("environment.updated")}`)