@boomerang-io/carbon-addons-boomerang-react 4.6.14-beta.3 → 4.6.14-beta.4
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,14 +136,15 @@ function HeaderTeamSwitcher({ analyticsHelpers, baseServicesUrl, createJoinTeamT
|
|
|
136
136
|
}
|
|
137
137
|
// if teams data loaded but there are no teams
|
|
138
138
|
}
|
|
139
|
-
else if ((
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
139
|
+
else if (Boolean(userTeamInstanceSwitcherDefault) &&
|
|
140
|
+
((hasUserTeams &&
|
|
141
|
+
userTeams?.data?.accountTeams?.length === 0 &&
|
|
142
|
+
userTeams?.data?.standardTeams?.length === 0 &&
|
|
143
|
+
userTeams?.data?.personalTeam?.length === 0) ||
|
|
144
|
+
(!hasUserTeams &&
|
|
145
|
+
teamsQuery?.data?.accountTeams?.length === 0 &&
|
|
146
|
+
teamsQuery?.data?.standardTeams?.length === 0 &&
|
|
147
|
+
teamsQuery?.data?.personalTeam?.length === 0))) {
|
|
147
148
|
handleNoTeamsToSelect();
|
|
148
149
|
}
|
|
149
150
|
}, [
|
|
@@ -127,14 +127,15 @@ function HeaderTeamSwitcher({ analyticsHelpers, baseServicesUrl, createJoinTeamT
|
|
|
127
127
|
}
|
|
128
128
|
// if teams data loaded but there are no teams
|
|
129
129
|
}
|
|
130
|
-
else if ((
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
130
|
+
else if (Boolean(userTeamInstanceSwitcherDefault) &&
|
|
131
|
+
((hasUserTeams &&
|
|
132
|
+
userTeams?.data?.accountTeams?.length === 0 &&
|
|
133
|
+
userTeams?.data?.standardTeams?.length === 0 &&
|
|
134
|
+
userTeams?.data?.personalTeam?.length === 0) ||
|
|
135
|
+
(!hasUserTeams &&
|
|
136
|
+
teamsQuery?.data?.accountTeams?.length === 0 &&
|
|
137
|
+
teamsQuery?.data?.standardTeams?.length === 0 &&
|
|
138
|
+
teamsQuery?.data?.personalTeam?.length === 0))) {
|
|
138
139
|
handleNoTeamsToSelect();
|
|
139
140
|
}
|
|
140
141
|
}, [
|
package/package.json
CHANGED