mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #5380] [bug]: Reordering Headers and Params #2062
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#2062
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?
Originally created by @aakashsbhatia2 on GitHub (Sep 8, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5380
Originally assigned to: @aakashsbhatia2 on GitHub.
Is there an existing issue for this?
Platform
Web App
Browser
Firefox
Operating System
Linux
Bug Description
When the headers and query params are reordered in HTTP requests/ graphQL, I am able to generate multiple empty entries.
Steps to reproduce
https://github.com/user-attachments/assets/499f21a0-bd22-4824-86fa-faea3ebecc5c
What I expect
I would expect that the UI should not allow the header to be placed below the last empty header.
Analysis
I think this is happening because:
Proposed Solution
I have a working solution. If the following is a reasonable fix, I can raise the PR. I am new to this repo so any feedback here would be greatly appreciated!
I fixed this by using a function to check if the move should be allowed
After fix
https://github.com/user-attachments/assets/9ce445b9-115f-4922-a316-4aa03762628a
Deployment Type
Self-hosted (on-prem deployment)
Version
No response
@nivedin commented on GitHub (Sep 10, 2025):
@aakashsbhatia2 this fix work please open a PR
@aakashsbhatia2 commented on GitHub (Sep 11, 2025):
Done!
@liyasthomas commented on GitHub (Sep 29, 2025):
The latest version of Hoppscotch has resolved this bug.