[PR #3484] [MERGED] fix: add optional chaining for teamMembers to handle undefined team #4402

Closed
opened 2026-03-17 01:56:34 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3484
Author: @nmerget
Created: 10/31/2023
Status: Merged
Merged: 11/6/2023
Merged by: @AndrewBastin

Base: release/2023.8.3Head: fix-undefined-team


📝 Commits (4)

  • eee93a9 fix: add optional chaining for teamMembers to handle undefined team
  • d868112 fix: add optional chaining for teamInvitations to handle undefined team
  • 49209a3 Update packages/hoppscotch-common/src/components/teams/Edit.vue
  • c913b35 chore: format with prettier

📊 Changes

2 files changed (+4 additions, -4 deletions)

View changed files

📝 packages/hoppscotch-common/src/components/teams/Edit.vue (+2 -2)
📝 packages/hoppscotch-common/src/components/teams/Invite.vue (+2 -2)

📄 Description

Description

The team can be null in some cases:

image

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/3484 **Author:** [@nmerget](https://github.com/nmerget) **Created:** 10/31/2023 **Status:** ✅ Merged **Merged:** 11/6/2023 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `release/2023.8.3` ← **Head:** `fix-undefined-team` --- ### 📝 Commits (4) - [`eee93a9`](https://github.com/hoppscotch/hoppscotch/commit/eee93a92e2a2d86c4bf12e209be829aa6f9a51ca) fix: add optional chaining for teamMembers to handle undefined team - [`d868112`](https://github.com/hoppscotch/hoppscotch/commit/d8681123ec118467c1ad581432c12413cd0d890c) fix: add optional chaining for teamInvitations to handle undefined team - [`49209a3`](https://github.com/hoppscotch/hoppscotch/commit/49209a378926df0057173286f0d489632351feb1) Update packages/hoppscotch-common/src/components/teams/Edit.vue - [`c913b35`](https://github.com/hoppscotch/hoppscotch/commit/c913b355d55126493e172d1bffe348dc97d42f5f) chore: format with prettier ### 📊 Changes **2 files changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components/teams/Edit.vue` (+2 -2) 📝 `packages/hoppscotch-common/src/components/teams/Invite.vue` (+2 -2) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> ### Description <!-- Add a brief description of the pull request --> The `team` can be `null` in some cases: ![image](https://github.com/hoppscotch/hoppscotch/assets/104347736/8c420f02-732e-44b1-84db-627c169b07e1) <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed ### Additional Information <!-- Any additional information like breaking changes, dependencies added, screenshots, comparisons between new and old behaviour, etc. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:56:34 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4402
No description provided.