@boomerang-io/carbon-addons-boomerang-react 4.6.14-beta.15 → 4.6.14-beta.16
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.
|
@@ -100,7 +100,7 @@ function HeaderTeamSwitcher({ analyticsHelpers, baseServicesUrl, createJoinTeamT
|
|
|
100
100
|
};
|
|
101
101
|
const handleNoTeamsToSelect = async () => {
|
|
102
102
|
const body = {
|
|
103
|
-
teamInstanceSwitcherDefault:
|
|
103
|
+
teamInstanceSwitcherDefault: null,
|
|
104
104
|
};
|
|
105
105
|
await mutateUserProfile({ baseServicesUrl, body });
|
|
106
106
|
};
|
|
@@ -148,7 +148,7 @@ function HeaderTeamSwitcher({ analyticsHelpers, baseServicesUrl, createJoinTeamT
|
|
|
148
148
|
teamsQuery?.data?.personalTeam?.length === 0))) {
|
|
149
149
|
handleNoTeamsToSelect();
|
|
150
150
|
}
|
|
151
|
-
else if (userTeamInstanceSwitcherDefault === null
|
|
151
|
+
else if (userTeamInstanceSwitcherDefault === null) {
|
|
152
152
|
setSelectedTeam(null);
|
|
153
153
|
}
|
|
154
154
|
}, [
|
|
@@ -91,7 +91,7 @@ function HeaderTeamSwitcher({ analyticsHelpers, baseServicesUrl, createJoinTeamT
|
|
|
91
91
|
};
|
|
92
92
|
const handleNoTeamsToSelect = async () => {
|
|
93
93
|
const body = {
|
|
94
|
-
teamInstanceSwitcherDefault:
|
|
94
|
+
teamInstanceSwitcherDefault: null,
|
|
95
95
|
};
|
|
96
96
|
await mutateUserProfile({ baseServicesUrl, body });
|
|
97
97
|
};
|
|
@@ -139,7 +139,7 @@ function HeaderTeamSwitcher({ analyticsHelpers, baseServicesUrl, createJoinTeamT
|
|
|
139
139
|
teamsQuery?.data?.personalTeam?.length === 0))) {
|
|
140
140
|
handleNoTeamsToSelect();
|
|
141
141
|
}
|
|
142
|
-
else if (userTeamInstanceSwitcherDefault === null
|
|
142
|
+
else if (userTeamInstanceSwitcherDefault === null) {
|
|
143
143
|
setSelectedTeam(null);
|
|
144
144
|
}
|
|
145
145
|
}, [
|
package/package.json
CHANGED