mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5162] [MERGED] chore: use initial value in runtime if current value is empty #5088
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#5088
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/5162
Author: @nivedin
Created: 6/17/2025
Status: ✅ Merged
Merged: 6/18/2025
Merged by: @jamesgeorge007
Base:
patch← Head:chore/use-current-variable-fallback📝 Commits (5)
75e9d7echore: use initial env val if current val is empty6e297f5chore: cleanup7ec98dcchore: env hover incorrect bugf977d25chore: add fallback for initial val8da5704chore: make selected env priority over global📊 Changes
6 files changed (+68 additions, -45 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/environments/my/Details.vue(+6 -15)📝
packages/hoppscotch-common/src/components/environments/teams/Details.vue(+1 -1)📝
packages/hoppscotch-common/src/helpers/RequestRunner.ts(+47 -19)📝
packages/hoppscotch-common/src/helpers/editor/extensions/HoppEnvironment.ts(+5 -1)📝
packages/hoppscotch-common/src/helpers/utils/environments.ts(+2 -7)📝
packages/hoppscotch-common/src/newstore/environments.ts(+7 -2)📄 Description
Closes HFE-890
This PR updates the environment usage flow where the initial environment variable value is used as the environment value if current value is empty at the time of request run without persisting the value.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.