@rh-support/manage 2.1.20 → 2.1.21

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":"PreferencesCaseView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseView.tsx"],"names":[],"mappings":"AAyBA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAsShD"}
1
+ {"version":3,"file":"PreferencesCaseView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseView.tsx"],"names":[],"mappings":"AAyBA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAmShD"}
@@ -36,7 +36,6 @@ export function PreferencesCaseView(props) {
36
36
  const defaultCaseViewID = 'default-case-view-select';
37
37
  const canUseHostName = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.HOSTNAME);
38
38
  const isInternalUserPermission = ability.can(resourceActions.READ, resources.ACCOUNTS_FILTER);
39
- const { request: fetchHostnameDefault } = useFetch(accounts.getIsSharingHostname);
40
39
  const accountNumber = loggedInUsersAccount.data.accountNumber;
41
40
  const { request: updateShareHostnames } = useFetch(accounts.updateIsSharingHostname);
42
41
  const originalAccountPermission = loggedInUserRights.data.isInternal();
@@ -61,11 +60,11 @@ export function PreferencesCaseView(props) {
61
60
  }, [localCommentSignature, commentValidated]);
62
61
  useEffect(() => {
63
62
  function userOriginalHostnameValue() {
63
+ var _a, _b;
64
64
  return __awaiter(this, void 0, void 0, function* () {
65
65
  try {
66
- const fetchedHostnameStatus = yield fetchHostnameDefault(accountNumber);
67
- (fetchedHostnameStatus === null || fetchedHostnameStatus === void 0 ? void 0 : fetchedHostnameStatus.shareHostnameWithRHT) &&
68
- setIsSharingHostNames(fetchedHostnameStatus.shareHostnameWithRHT);
66
+ ((_a = loggedInUsersAccount.data) === null || _a === void 0 ? void 0 : _a.shareHostnameWithRHT) &&
67
+ setIsSharingHostNames((_b = loggedInUsersAccount.data) === null || _b === void 0 ? void 0 : _b.shareHostnameWithRHT);
69
68
  }
70
69
  catch (error) {
71
70
  console.log(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/manage",
3
- "version": "2.1.20",
3
+ "version": "2.1.21",
4
4
  "description": "Customer Support Manage App",
5
5
  "author": "Jordan Eudy <jeudy100@gmail.com>",
6
6
  "homepage": "",
@@ -86,7 +86,7 @@
86
86
  "@patternfly/react-table": "4.111.33",
87
87
  "@rh-support/components": "2.1.18",
88
88
  "@rh-support/configs": "2.0.9",
89
- "@rh-support/react-context": "2.1.18",
89
+ "@rh-support/react-context": "2.1.19",
90
90
  "@rh-support/types": "2.0.2",
91
91
  "@rh-support/user-permissions": "2.1.12",
92
92
  "@rh-support/utils": "2.1.9",
@@ -103,5 +103,5 @@
103
103
  "defaults and supports es6-module",
104
104
  "maintained node versions"
105
105
  ],
106
- "gitHead": "ec73b04b857523eb9ced98302c2245c095db46e1"
106
+ "gitHead": "1be555e9d41b629276c10a44ec8e40e0bb9a8995"
107
107
  }