mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5305] [MERGED] fix: SmartEnvInput environment context bug #5154
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#5154
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5305
Author: @nivedin
Created: 8/4/2025
Status: ✅ Merged
Merged: 8/5/2025
Merged by: @jamesgeorge007
Base:
patch← Head:fix/env-input-env-bug📝 Commits (2)
eab2c84fix: env input variable undefined bug74bdd4fchore: code refactor📊 Changes
2 files changed (+2 additions, -2 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/http/RequestTab.vue(+1 -1)📝
packages/hoppscotch-common/src/components/smart/EnvInput.vue(+1 -1)📄 Description
Closes #5304
This PR fixes an issue in
SmartEnvInputwhere the environment variables were not being populated in the context. The root cause was that theRequestOptioncomponent was not correctly propagating the env prop.With this fix, we now check if the
envarray is empty and populateenvVarsaccordingly to ensure the expected environment context is applied.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.