mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5641] [MERGED] fix: prevent clear response action in response examples and test runner #5300
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#5300
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/5641
Author: @nivedin
Created: 12/1/2025
Status: ✅ Merged
Merged: 12/2/2025
Merged by: @jamesgeorge007
Base:
patch← Head:fix/clear-response-bug📝 Commits (4)
6fa30dbfix: clear response for request tab only37711b5chore: hide clear response in test runnere4b73bechore: make isTestRunner optional12bb7dcchore: fix comment📊 Changes
9 files changed (+65 additions, -8 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/lenses/ResponseBodyRenderer.vue(+1 -0)📝
packages/hoppscotch-common/src/components/lenses/renderers/AudioLensRenderer.vue(+8 -1)📝
packages/hoppscotch-common/src/components/lenses/renderers/HTMLLensRenderer.vue(+8 -1)📝
packages/hoppscotch-common/src/components/lenses/renderers/ImageLensRenderer.vue(+8 -1)📝
packages/hoppscotch-common/src/components/lenses/renderers/JSONLensRenderer.vue(+8 -1)📝
packages/hoppscotch-common/src/components/lenses/renderers/PDFLensRenderer.vue(+8 -1)📝
packages/hoppscotch-common/src/components/lenses/renderers/RawLensRenderer.vue(+8 -1)📝
packages/hoppscotch-common/src/components/lenses/renderers/VideoLensRenderer.vue(+8 -1)📝
packages/hoppscotch-common/src/components/lenses/renderers/XMLLensRenderer.vue(+8 -1)📄 Description
Closes FE-1076
This PR fixes the issue where the app crashed when clearing the response from an example request. Now, it only clears the response of the request tab.
Follow-up of #5435.
What's changed
Notes to reviewers
N/A
Summary by cubic
Fixed a crash when clearing a response from an Example request by limiting clear to the Request tab and hiding Clear Response in Test Runner (FE-1076). Added guards to prevent clearing editable example or test-runner responses.
Written for commit
12bb7dc007. Summary will update automatically on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.