mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5692] [CLOSED] fix(collection): error when opened imported collection #5320
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#5320
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/5692
Author: @akhmadkhasan68
Created: 12/12/2025
Status: ❌ Closed
Base:
main← Head:fix/open-imported-collection📝 Commits (1)
9e6c599fix[collection]: error when opened impoerted collection📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
packages/hoppscotch-common/src/helpers/teams/TeamCollectionAdapter.ts(+1 -1)📄 Description
Closes #5674 #5670 #5690
Fix team request selection error after updates and Postman Collection v2.1 imports. The problem is:
TypeError: Cannot create property 'auth' on stringRoot cause of this problem is Missing
translateToNewRequest()call in theteamRequestUpdated$subscription handler (line 796 of TeamCollectionAdapter.ts). When team requests are updated, the request data is parsed from JSON but not translated to ensure schema compatibility.What's changed
Solution:
JSON.parse()withtranslateToNewRequest()to match the pattern used in other handlers (add, move, initial load) on filepackages/hoppscotch-common/src/helpers/teams/TeamCollectionAdapter.tsImpact
Files Changed
packages/hoppscotch-common/src/helpers/teams/TeamCollectionAdapter.ts (line 796)Evidence before changes reproduced on Hoppscotch cloud version at https://hoppscotch.io:
Evidence step after the changes:
Notes to reviewers
Summary by cubic
Fixes errors when opening imported collections by normalizing updated team requests to the new request format. OpenAPI-imported endpoints now open reliably.
Written for commit
9e6c599c68. Summary will update automatically on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.