@boomerang-io/carbon-addons-boomerang-react 4.6.14-beta.2 → 4.6.14-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -136,7 +136,14 @@ function HeaderTeamSwitcher({ analyticsHelpers, baseServicesUrl, createJoinTeamT
|
|
|
136
136
|
}
|
|
137
137
|
// if teams data loaded but there are no teams
|
|
138
138
|
}
|
|
139
|
-
else if (
|
|
139
|
+
else if ((hasUserTeams &&
|
|
140
|
+
userTeams?.data?.accountTeams?.length === 0 &&
|
|
141
|
+
userTeams?.data?.standardTeams?.length === 0 &&
|
|
142
|
+
userTeams?.data?.personalTeam?.length === 0) ||
|
|
143
|
+
(!hasUserTeams &&
|
|
144
|
+
teamsQuery?.data?.accountTeams?.length === 0 &&
|
|
145
|
+
teamsQuery?.data?.standardTeams?.length === 0 &&
|
|
146
|
+
teamsQuery?.data?.personalTeam?.length === 0)) {
|
|
140
147
|
handleNoTeamsToSelect();
|
|
141
148
|
}
|
|
142
149
|
}, [
|
|
@@ -144,12 +151,10 @@ function HeaderTeamSwitcher({ analyticsHelpers, baseServicesUrl, createJoinTeamT
|
|
|
144
151
|
hasUserTeams,
|
|
145
152
|
mutateUserProfile,
|
|
146
153
|
selectedTeam,
|
|
147
|
-
teamsQuery?.data,
|
|
148
154
|
teamsQuery?.data?.accountTeams,
|
|
149
155
|
teamsQuery?.data?.personalTeam,
|
|
150
156
|
teamsQuery?.data?.standardTeams,
|
|
151
157
|
userTeamInstanceSwitcherDefault,
|
|
152
|
-
userTeams?.data,
|
|
153
158
|
userTeams?.data?.accountTeams,
|
|
154
159
|
userTeams?.data?.personalTeam,
|
|
155
160
|
userTeams?.data?.standardTeams,
|
|
@@ -127,7 +127,14 @@ function HeaderTeamSwitcher({ analyticsHelpers, baseServicesUrl, createJoinTeamT
|
|
|
127
127
|
}
|
|
128
128
|
// if teams data loaded but there are no teams
|
|
129
129
|
}
|
|
130
|
-
else if (
|
|
130
|
+
else if ((hasUserTeams &&
|
|
131
|
+
userTeams?.data?.accountTeams?.length === 0 &&
|
|
132
|
+
userTeams?.data?.standardTeams?.length === 0 &&
|
|
133
|
+
userTeams?.data?.personalTeam?.length === 0) ||
|
|
134
|
+
(!hasUserTeams &&
|
|
135
|
+
teamsQuery?.data?.accountTeams?.length === 0 &&
|
|
136
|
+
teamsQuery?.data?.standardTeams?.length === 0 &&
|
|
137
|
+
teamsQuery?.data?.personalTeam?.length === 0)) {
|
|
131
138
|
handleNoTeamsToSelect();
|
|
132
139
|
}
|
|
133
140
|
}, [
|
|
@@ -135,12 +142,10 @@ function HeaderTeamSwitcher({ analyticsHelpers, baseServicesUrl, createJoinTeamT
|
|
|
135
142
|
hasUserTeams,
|
|
136
143
|
mutateUserProfile,
|
|
137
144
|
selectedTeam,
|
|
138
|
-
teamsQuery?.data,
|
|
139
145
|
teamsQuery?.data?.accountTeams,
|
|
140
146
|
teamsQuery?.data?.personalTeam,
|
|
141
147
|
teamsQuery?.data?.standardTeams,
|
|
142
148
|
userTeamInstanceSwitcherDefault,
|
|
143
|
-
userTeams?.data,
|
|
144
149
|
userTeams?.data?.accountTeams,
|
|
145
150
|
userTeams?.data?.personalTeam,
|
|
146
151
|
userTeams?.data?.standardTeams,
|
package/package.json
CHANGED