mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5855] [CLOSED] fix: add null check for inheritedAuth in TeamsSearch.service.ts #5383
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#5383
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/5855
Author: @themavik
Created: 2/10/2026
Status: ❌ Closed
Base:
main← Head:fix/teams-search-auth-type-crash-5841📝 Commits (1)
0e1c306fix: add null check for inheritedAuth in TeamsSearch.service📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
packages/hoppscotch-common/src/helpers/teams/TeamsSearch.service.ts(+1 -1)📄 Description
Summary
Fixes #5841.
When opening a request from search panel results, the
findInheritableParentAuthmethod inTeamsSearch.service.tsaccessesinheritedAuth.authTypewithout checking ifinheritedAuth(i.e.,parentInheritedData.auth) is defined.If a collection's
dataJSON doesn't contain anauthfield,parentInheritedData.authisundefined, causing:Fix
Added a null check:
if (inheritedAuth && inheritedAuth.authType !== "inherit")to guard against undefinedauthdata in the parsed collection JSON.Summary by cubic
Prevent crash when opening a request from search results by adding a null check for inheritedAuth in TeamsSearch.service. Fixes #5841.
Written for commit
0e1c3068cd. Summary will update on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.