mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5384] [MERGED] fix: prevent empty entries when dragging items past last row #5185
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#5185
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/5384
Author: @aakashsbhatia2
Created: 9/11/2025
Status: ✅ Merged
Merged: 9/18/2025
Merged by: @jamesgeorge007
Base:
next← Head:fix/reordering-http-graphql-header-param-issue📝 Commits (5)
49fc4f5fix: reordering issue causing empty entries when http header, graphQL header and http query param is moved below the last linebd6bbe8chore: resolve feedback by adding a helper function to limit repetitive code18a4a44chore: add checkmove function in other draggable components5c58b50chore: add function comment1ac751drefactor: improve drag drop validation naming📊 Changes
9 files changed (+316 additions, -0 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/graphql/Headers.vue(+5 -0)📝
packages/hoppscotch-common/src/components/http/BodyParameters.vue(+4 -0)📝
packages/hoppscotch-common/src/components/http/Headers.vue(+5 -0)📝
packages/hoppscotch-common/src/components/http/Parameters.vue(+5 -0)📝
packages/hoppscotch-common/src/components/http/RequestVariables.vue(+5 -0)📝
packages/hoppscotch-common/src/components/http/URLEncodedParams.vue(+5 -0)➕
packages/hoppscotch-common/src/helpers/__tests__/dragDropValidation.spec.ts(+244 -0)➕
packages/hoppscotch-common/src/helpers/dragDropValidation.ts(+38 -0)📝
packages/hoppscotch-common/src/pages/realtime/websocket.vue(+5 -0)📄 Description
Closes #5380
When reordering http headers, query params, request variables, body parameters or graphQl headers, if the header is dragged passed the last row, additional empty rows are created.
What's changed
In this PR, I have:
Notes to reviewers
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.