From 5428a738117b6f14278d1109fdaaf28850c46e27 Mon Sep 17 00:00:00 2001 From: Nicolas Merget <104347736+nmerget@users.noreply.github.com> Date: Mon, 6 Nov 2023 06:55:39 +0100 Subject: [PATCH] fix: add optional chaining for teamMembers to handle undefined team (#3484) Co-authored-by: James George --- packages/hoppscotch-common/src/components/teams/Edit.vue | 4 ++-- packages/hoppscotch-common/src/components/teams/Invite.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/hoppscotch-common/src/components/teams/Edit.vue b/packages/hoppscotch-common/src/components/teams/Edit.vue index 90fc88656..28129a90b 100644 --- a/packages/hoppscotch-common/src/components/teams/Edit.vue +++ b/packages/hoppscotch-common/src/components/teams/Edit.vue @@ -35,12 +35,12 @@ v-if=" !teamDetails.loading && E.isRight(teamDetails.data) && - teamDetails.data.right.team.teamMembers + teamDetails.data.right.team?.teamMembers " class="border rounded border-divider" >
@@ -122,7 +122,7 @@