@rh-support/troubleshoot 0.2.104 → 0.2.105

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.
@@ -53,7 +53,7 @@ function CaseAlternateId(props) {
53
53
  const updateAlternateId = () => __awaiter(this, void 0, void 0, function* () {
54
54
  try {
55
55
  setIsUpdating(true);
56
- const caseDetails = { alternateId: alternateIdState };
56
+ const caseDetails = { alternateId: alternateIdState === null || alternateIdState === void 0 ? void 0 : alternateIdState.trim() };
57
57
  yield updateCaseDetails(caseDispatch, caseNumber, caseDetails);
58
58
  ToastNotification.addSuccessMessage(t(`Alternate case ID has been successfully updated`));
59
59
  setIsUpdating(false);
@@ -64,7 +64,7 @@ function CaseHostname(props) {
64
64
  }
65
65
  });
66
66
  const onSave = (e) => __awaiter(this, void 0, void 0, function* () {
67
- const caseDetails = { hostname: hostnameState };
67
+ const caseDetails = { hostname: hostnameState === null || hostnameState === void 0 ? void 0 : hostnameState.trim() };
68
68
  try {
69
69
  yield onHostnameUpdate(caseDetails);
70
70
  setLocalHostnameChange(true);
@@ -67,7 +67,7 @@ function Summary(props) {
67
67
  });
68
68
  const onSave = (e) => __awaiter(this, void 0, void 0, function* () {
69
69
  setHasLargeSummary(false);
70
- const caseDetails = { summary: summaryState };
70
+ const caseDetails = { summary: summaryState === null || summaryState === void 0 ? void 0 : summaryState.trim() };
71
71
  if (caseNumber) {
72
72
  // edit/view case
73
73
  try {
@@ -13,8 +13,7 @@ export function Hostname(props) {
13
13
  setCaseDetails(caseDispatch, caseDetails);
14
14
  };
15
15
  const onHostnameChange = (e) => {
16
- var _a;
17
- onCaseDetailsChange({ hostname: (_a = e.target.value) === null || _a === void 0 ? void 0 : _a.trim() });
16
+ onCaseDetailsChange({ hostname: e.target.value });
18
17
  };
19
18
  if (!canUseHostName) {
20
19
  return React.createElement(React.Fragment, null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "0.2.104",
3
+ "version": "0.2.105",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -143,5 +143,5 @@
143
143
  "not ie <= 11",
144
144
  "not op_mini all"
145
145
  ],
146
- "gitHead": "f2b203085e179115277901c8d155d7c72f7f152e"
146
+ "gitHead": "2b7ecbf88009c77814cd3bb6c3d608cd4add2543"
147
147
  }