mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3664] [MERGED] fix(common): ensure the add-environment modal value field is empty when opened via the inspector #4480
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#4480
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/3664
Author: @jamesgeorge007
Created: 12/18/2023
Status: ✅ Merged
Merged: 12/18/2023
Merged by: @AndrewBastin
Base:
release/2023.12.0← Head:hotfix/inspector-add-env-flow📝 Commits (2)
20bd70efix: ensure the add-environment modal value field is empty when opened via the inspectora76ab3erefactor: make variable name fallback to an empty string📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/environments/index.vue(+1 -1)📄 Description
Description
When opened via the inspector, the add environment modal showed the value associated with the previous attempt to set an environment via the context menu. This PR aims to fix this behavior by removing the truthy check before assigning environment values at the parent environments component, thereby permitting empty strings.
https://github.com/hoppscotch/hoppscotch/assets/25279263/9dd2e560-bfb8-4152-819c-90a0e07f84ce
Closes HFE-347.
Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.