@rh-support/manage 2.5.241 → 2.5.242

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.
@@ -1 +1 @@
1
- {"version":3,"file":"GroupSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/GroupSelect/GroupSelect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAsC3E,OAAO,KAAmD,MAAM,OAAO,CAAC;AAMxE,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AAKD,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,sBAmmBxC,CAAC"}
1
+ {"version":3,"file":"GroupSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/GroupSelect/GroupSelect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAsC3E,OAAO,KAAmD,MAAM,OAAO,CAAC;AAMxE,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AAKD,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,sBA0mBxC,CAAC"}
@@ -28,7 +28,7 @@ export const GroupSelect = (props) => {
28
28
  const { onSelect: onSelectProp } = props;
29
29
  const manageActionsRef = useRef();
30
30
  const apolloClient = useApolloClient();
31
- const { globalMetadataState: { caseGroups, loggedInUserJwtToken, loggedInUsersAccount }, } = useGlobalStateContext();
31
+ const { globalMetadataState: { caseGroups, loggedInUsersAccount }, } = useGlobalStateContext();
32
32
  const dispatch = useGlobalDispatchContext();
33
33
  const selectAGroupText = caseGroups.isFetching
34
34
  ? t('Loading groups')
@@ -56,8 +56,16 @@ export const GroupSelect = (props) => {
56
56
  if (hasFetchedFromGraphQL.current)
57
57
  return;
58
58
  hasFetchedFromGraphQL.current = true;
59
- Promise.resolve(fetchCaseGroupsForSSO(dispatch, loggedInUserJwtToken.preferred_username, apolloClient, accountId)).finally(() => setGroupsFetchCompleted(true));
60
- }, [dispatch, loggedInUserJwtToken.preferred_username, apolloClient, accountId]);
59
+ const fetchGroups = () => __awaiter(void 0, void 0, void 0, function* () {
60
+ try {
61
+ yield fetchCaseGroupsForSSO(dispatch, apolloClient, accountId);
62
+ }
63
+ finally {
64
+ setGroupsFetchCompleted(true);
65
+ }
66
+ });
67
+ fetchGroups();
68
+ }, [dispatch, apolloClient, accountId]);
61
69
  // Set default group once groups are loaded
62
70
  useEffect(() => {
63
71
  var _a, _b;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/manage",
3
- "version": "2.5.241",
3
+ "version": "2.5.242",
4
4
  "description": "Customer Support Manage App",
5
5
  "author": "Jordan Eudy <jeudy100@gmail.com>",
6
6
  "license": "ISC",
@@ -76,12 +76,12 @@
76
76
  "@patternfly/patternfly": "6.2.1",
77
77
  "@patternfly/react-core": "6.2.1",
78
78
  "@patternfly/react-table": "6.2.1",
79
- "@rh-support/components": "2.5.193",
79
+ "@rh-support/components": "2.5.194",
80
80
  "@rh-support/configs": "2.0.75",
81
- "@rh-support/react-context": "2.5.287",
81
+ "@rh-support/react-context": "2.5.288",
82
82
  "@rh-support/types": "2.0.26",
83
- "@rh-support/user-permissions": "2.5.139",
84
- "@rh-support/utils": "2.5.121",
83
+ "@rh-support/user-permissions": "2.5.140",
84
+ "@rh-support/utils": "2.5.122",
85
85
  "@types/react-beautiful-dnd": "^13.0.0",
86
86
  "i18next": "^23.15.0",
87
87
  "lodash": ">=4.17.15",
@@ -100,5 +100,5 @@
100
100
  "defaults and supports es6-module",
101
101
  "maintained node versions"
102
102
  ],
103
- "gitHead": "25e583b62d2c134f01811158805d24b70da32847"
103
+ "gitHead": "6166d112918583d5b9030b1e8cb1e7d2a27bcaa4"
104
104
  }