@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 ((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)) {
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 ((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)) {
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@boomerang-io/carbon-addons-boomerang-react",
3
3
  "description": "Carbon Addons for Boomerang apps",
4
- "version": "4.6.14-beta.3",
4
+ "version": "4.6.14-beta.4",
5
5
  "author": {
6
6
  "name": "Tim Bula",
7
7
  "email": "timrbula@gmail.com"