@boomerang-io/carbon-addons-boomerang-react 4.6.14-beta.5 → 4.6.14-beta.6
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.
|
@@ -48,10 +48,16 @@ function ProfileSettings({ baseServicesUrl, refetchUser, refetchNavigation, src,
|
|
|
48
48
|
onSuccess: () => {
|
|
49
49
|
queryClient.invalidateQueries(userUrl);
|
|
50
50
|
queryClient.invalidateQueries(profileUrl);
|
|
51
|
-
if (refetchUser)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
if (refetchUser) {
|
|
52
|
+
setTimeout(() => {
|
|
53
|
+
refetchUser();
|
|
54
|
+
}, 1000);
|
|
55
|
+
}
|
|
56
|
+
if (refetchNavigation) {
|
|
57
|
+
setTimeout(() => {
|
|
58
|
+
refetchNavigation();
|
|
59
|
+
}, 1000);
|
|
60
|
+
}
|
|
55
61
|
},
|
|
56
62
|
});
|
|
57
63
|
// Only disable when we have a user and we know that there aren' any lower level groups to manage
|
|
@@ -67,6 +73,7 @@ function ProfileSettings({ baseServicesUrl, refetchUser, refetchNavigation, src,
|
|
|
67
73
|
}
|
|
68
74
|
async function handleSubmit() {
|
|
69
75
|
const body = {
|
|
76
|
+
teamInstanceSwitcherDefault: null,
|
|
70
77
|
lowerLevelGroups: teams,
|
|
71
78
|
};
|
|
72
79
|
try {
|
|
@@ -39,10 +39,16 @@ function ProfileSettings({ baseServicesUrl, refetchUser, refetchNavigation, src,
|
|
|
39
39
|
onSuccess: () => {
|
|
40
40
|
queryClient.invalidateQueries(userUrl);
|
|
41
41
|
queryClient.invalidateQueries(profileUrl);
|
|
42
|
-
if (refetchUser)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
if (refetchUser) {
|
|
43
|
+
setTimeout(() => {
|
|
44
|
+
refetchUser();
|
|
45
|
+
}, 1000);
|
|
46
|
+
}
|
|
47
|
+
if (refetchNavigation) {
|
|
48
|
+
setTimeout(() => {
|
|
49
|
+
refetchNavigation();
|
|
50
|
+
}, 1000);
|
|
51
|
+
}
|
|
46
52
|
},
|
|
47
53
|
});
|
|
48
54
|
// Only disable when we have a user and we know that there aren' any lower level groups to manage
|
|
@@ -58,6 +64,7 @@ function ProfileSettings({ baseServicesUrl, refetchUser, refetchNavigation, src,
|
|
|
58
64
|
}
|
|
59
65
|
async function handleSubmit() {
|
|
60
66
|
const body = {
|
|
67
|
+
teamInstanceSwitcherDefault: null,
|
|
61
68
|
lowerLevelGroups: teams,
|
|
62
69
|
};
|
|
63
70
|
try {
|
package/package.json
CHANGED